# Functions
DecodeDb decodes a Db response.
DecodeEmpty decodes a Empty response.
DecodeFailure decodes a Failure response.
DecodeFiles decodes a Files response.
DecodeMetadata decodes a Metadata response.
DecodeNode decodes a Node response.
DecodeNodeCompat handles also pre-1.0 legacy server messages.
DecodeNodeLegacy decodes a NodeLegacy response.
DecodeNodes decodes a Nodes response.
DecodeResult decodes a Result response.
DecodeRows decodes a Rows response.
DecodeStmt decodes a Stmt response.
DecodeWelcome decodes a Welcome response.
Dial function handling plain TCP and Unix socket endpoints.
EncodeAdd encodes a Add request.
EncodeAssign encodes a Assign request.
EncodeClient encodes a Client request.
EncodeCluster encodes a Cluster request.
EncodeDescribe encodes a Describe request.
EncodeDump encodes a Dump request.
EncodeExecSQLV0 encodes a ExecSQL request.
EncodeExecSQLV1 encodes a ExecSQL request.
EncodeExecV0 encodes a Exec request.
EncodeExecV1 encodes a Exec request.
EncodeFinalize encodes a Finalize request.
EncodeHeartbeat encodes a Heartbeat request.
EncodeInterrupt encodes a Interrupt request.
EncodeLeader encodes a Leader request.
EncodeOpen encodes a Open request.
EncodePrepare encodes a Prepare request.
EncodeQuerySQLV0 encodes a QuerySQL request.
EncodeQuerySQLV1 encodes a QuerySQL request.
EncodeQueryV0 encodes a Query request.
EncodeQueryV1 encodes a Query request.
EncodeRemove encodes a Remove request.
EncodeTransfer encodes a Transfer request.
EncodeWeight encodes a Weight request.
Perform the initial handshake using the given protocol version.
NewConnector returns a new connector that can be used by a cowsql driver to create new clients connected to a leader cowsql server.
NewInmemNodeStore creates NodeStore which stores its data in-memory.
# Constants
SQLite datatype codes.
Special data types for time values.
Cluster response formats.
Cluster response formats.
SQLite datatype codes.
SQLite datatype codes.
Special data types for time values.
SQLite datatype codes.
Request types.
Request types.
Request types.
Request types.
Request types.
Formats.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Request types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Response types.
Node roles.
Node roles.
SQLite datatype codes.
Special data types for time values.
VersionLegacy is the pre 1.0 cowsql server protocol version.
VersionOne is version 1 of the server protocol.
Node roles.
# Variables
Client errors.
ErrRowsPart is returned when the first batch of a multi-response result batch is done.
# Structs
Config holds various configuration parameters for a cowsql client.
Connector is in charge of creating a cowsql SQL client connected to the current leader of a cluster.
Error holds information about a SQLite error.
ErrRequest is returned in case of request failure.
Files holds a set of files encoded in a message body.
InmemNodeStore keeps the list of servers in memory.
Message holds data about a single request or response.
NodeInfo holds information about a single server.
Protocol sends and receive the cowsql message on the wire.
Result holds the result of a statement.
Rows holds a result set encoded in a message body.
# Interfaces
NodeStore is used by a cowsql client to get an initial list of candidate cowsql servers that it can dial in order to find a leader server to connect to.
# Type aliases
DialFunc is a function that can be used to establish a network connection.
NamedValues is a type alias of a slice of driver.NamedValue.
No description provided by the author
NodeRole identifies the role of a node.
Nodes is a type alias of a slice of NodeInfo.