package
1.1.0
Repository: https://github.com/rancher/go-dqlite.git
Documentation: pkg.go.dev

# Functions

Connect establishes a connection with a dqlite node.
DecodeDb decodes a Db response.
DecodeEmpty decodes a Empty response.
DecodeFailure decodes a Failure response.
DecodeFiles decodes a Files 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.
EncodeClient encodes a Client request.
EncodeCluster encodes a Cluster request.
EncodeDump encodes a Dump request.
EncodeExec encodes a Exec request.
EncodeExecSQL encodes a ExecSQL request.
EncodeFinalize encodes a Finalize request.
EncodeHeartbeat encodes a Heartbeat request.
EncodeInterrupt encodes a Interrupt request.
EncodeJoin encodes a Join request.
EncodeLeader encodes a Leader request.
EncodeOpen encodes a Open request.
EncodePrepare encodes a Prepare request.
EncodePromote encodes a Promote request.
EncodeQuery encodes a Query request.
EncodeQuerySQL encodes a QuerySQL request.
EncodeRemove encodes a Remove request.
NewConnector returns a new connector that can be used by a dqlite driver to create new clients connected to a leader dqlite server.
NewInmemNodeStore creates NodeStore which stores its data in-memory.
No description provided by the author
TCPDial is a dial function using plain TCP to establish the network connection.
UnixDial is a dial function using Unix sockets to establish the network connection.

# Constants

SQLite datatype codes.
Special data types for time values.
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.
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.
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.

# 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.
Connector is in charge of creating a dqlite SQL client connected to the current leader of a cluster.
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 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.
Nodes is a type alias of a slice of NodeInfo.