OptionalauthBasic authentication credentials.
OptionalauthCallback resolving basic authentication credentials, for rotating secrets.
Takes precedence over auth when both are set.
OptionalclusterEnable cluster discovery via the /nodes endpoint.
When true (default), after a successful request the client refreshes its peer
list by calling /nodes in the background. On subsequent network failures the
client rotates through all known peers rather than retrying a single host.
Set to false when a load balancer or Kubernetes service handles node selection,
so the client communicates only with the configured host.
OptionalconsistencyDefault consistency level for queries.
OptionalfetchCustom fetch implementation to use for HTTP requests.
Supply a pre-configured fetch function to enable mTLS or other advanced
transport options. When omitted, the global fetch is used.
OptionalfollowAutomatically follow leader redirects (HTTP 301/307). Defaults to true.
OptionalfreshnessDefault freshness options for stale reads.
Host and port of the primary rqlite node (e.g. "localhost:4001").
OptionalhostsAdditional seed hosts to use for cluster bootstrapping (e.g. ["localhost:4003", "localhost:4005"]).
Combined with host to form the initial peer pool. Used when the primary host is
unreachable — the client will try each seed in order before giving up.
Ignored when clusterDiscovery is false.
OptionalmaxMaximum number of leader redirect attempts. Defaults to 5.
OptionalmaxMaximum number of retry attempts for transient failures. Defaults to 3.
OptionalretryBase delay in milliseconds for exponential backoff between retries. Defaults to 100.
OptionaltimeoutDefault request timeout in milliseconds.
OptionaltlsUse HTTPS instead of HTTP.
Configuration for the rqlite client.