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

# Functions

No description provided by the author
DefaultLogFunc emits messages using the stdlib's logger.
DefaultNodeStore creates a new NodeStore using the given filename to open a SQLite database, with default names for the schema, table and column parameters.
FindLeader returns a Client connected to the current cluster leader, if any.
New creates a new client connected to the dqlite node with the given address.
NewNodeStore creates a new NodeStore.
WithDialFunc sets a custom dial function for creating the client network connection.
WithLogFunc sets a custom log function.

# Constants

Available logging levels.
Available logging levels.
Available logging levels.
Available logging levels.

# Variables

NewInmemNodeStore creates NodeStore which stores its data in-memory.

# Structs

Client speaks the dqlite wire protocol.
DatabaseNodeStore persists a list addresses of dqlite nodes in a SQL table.
File holds the content of a single database file.

# Type aliases

DialFunc is a function that can be used to establish a network connection.
InmemNodeStore keeps the list of target dqlite 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.
NodeStore is used by a dqlite client to get an initial list of candidate dqlite nodes that it can dial in order to find a leader dqlite node to use.
Option that can be used to tweak client parameters.