package
1.22.0
Repository: https://github.com/cowsql/go-cowsql.git
Documentation: pkg.go.dev

# Functions

DefaultDialFunc is the default dial function, which can handle plain TCP and Unix socket endpoints.
DefaultLogFunc doesn't emit any message.
DefaultNodeStore creates a new NodeStore using the given filename.
DialFuncWithTLS returns a dial function that uses TLS encryption.
FindLeader returns a Client connected to the current cluster leader.
New creates a new client connected to the cowsql node with the given address.
NewNodeStore creates a new NodeStore.
NewYamlNodeStore creates a new YamlNodeStore backed by the given YAML file.
WithDialFunc sets a custom dial function for creating the client network connection.
WithLogFunc sets a custom log function.
WithNodeStoreWhereClause configures the node store to append the given hard-coded where clause to the SELECT query used to fetch nodes.

# Constants

Available logging levels.
Available logging levels.
Available logging levels.
Available logging levels.
Available logging levels.
Node roles.
Node roles.
Node roles.

# Variables

NewInmemNodeStore creates NodeStore which stores its data in-memory.

# Structs

Client speaks the cowsql wire protocol.
DatabaseNodeStore persists a list addresses of cowsql nodes in a SQL table.
File holds the content of a single database file.
NodeMetadata user-defined node-level metadata.
Persists a list addresses of cowsql nodes in a YAML file.

# Type aliases

DialFunc is a function that can be used to establish a network connection.
InmemNodeStore keeps the list of target cowsql nodes in memory.
LogFunc is a function that can be used for logging.
LogLevel defines the logging level.
NodeInfo holds information about a single server.
NodeRole identifies the role of a node.
NodeStore is used by a cowsql client to get an initial list of candidate cowsql nodes that it can dial in order to find a leader cowsql node to use.
Option that can be used to tweak node store parameters.
Option that can be used to tweak client parameters.