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

# Functions

DecodeDb decodes a Db response.
DecodeEmpty decodes a Empty response.
DecodeFailure decodes a Failure response.
DecodeResult decodes a Result response.
DecodeRows decodes a Rows response.
DecodeServer decodes a Server response.
DecodeServers decodes a Servers response.
DecodeStmt decodes a Stmt response.
DecodeWelcome decodes a Welcome response.
EncodeClient encodes a Client 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.
NewInmemServerStore creates ServerStore which stores its data in-memory.
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.

# Variables

Client errors.
ErrRowsPart is returned when the first batch of a multi-response result batch is done.

# Structs

Client connecting to a dqlite server and speaking the dqlite wire protocol.
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.
InmemServerStore keeps the list of servers in memory.
Message holds data about a single request or response.
Result holds the result of a statement.
Rows holds a result set encoded in a message body.

# Interfaces

ServerStore 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

NamedValues is a type alias of a slice of driver.NamedValue.
ServerInfo holds information about a single server.
Servers is a type alias of a slice of bindings.ServerInfo.