# Functions
New creates a new application node.
SimpleDialTLSConfig returns a client-side TLS configuration with sane defaults (e.g.
SimpleListenTLSConfig returns a server-side TLS configuration with sane defaults (e.g.
No description provided by the author
WithAddress sets the network address of the application node.
WithAutoRecovery enables or disables auto-recovery of persisted data at startup for this node.
WithCluster must be used when starting a newly added application node for the first time.
WithExternalConn enables passing an external dial function that will be used whenever cowsql needs to make an outside connection.
WithFailureDomain sets the node's failure domain.
WithLogFunc sets a custom log function.
WithNetworkLatency sets the average one-way network latency.
WithRolesAdjustmentFrequency sets the frequency at which the current cluster leader will check if the roles of the various nodes in the cluster matches the desired setup and perform promotions/demotions to adjust the situation if needed.
WithSnapshotParams sets the raft snapshot parameters.
WithStandBys sets the number of nodes in the cluster that should have the StandBy role.
WithTLS enables TLS encryption of network traffic.
WithTracing will emit a log message at the given level every time a statement gets executed.
WithUnixSocket allows setting a specific socket path for communication between go-cowsql and cowsql.
WithVoters sets the number of nodes in the cluster that should have the Voter role.
# Structs
App is a high-level helper for initializing a typical cowsql-based Go application.
RolesChanges implements an algorithm to take decisions about which node should have which role in a cluster.
RolesConfig can be used to tweak the algorithm implemented by RolesChanges.
# Type aliases
Option can be used to tweak app parameters.