package
2.0.0
Repository: https://github.com/canonical/go-dqlite.git
Documentation: pkg.go.dev

# 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.
NewDirectConnector returns a Connector that will connect to the node with the given ID and address.
NewInmemNodeStore creates NodeStore which stores its data in-memory.
NewConnector returns a Connector that will connect to the current cluster leader.

# 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.
MaxConcurrentLeaderConns is the default maximum number of concurrent requests to other cluster members to probe for leadership.
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 dqlite 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 dqlite client.
No description provided by the author
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.
LeaderTracker remembers the address of the cluster leader, and possibly holds a reusable connection to it.
Message holds data about a single request or response.
NodeInfo holds information about a single server.
Protocol sends and receive the dqlite 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 dqlite client to get an initial list of candidate dqlite 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.