Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an etcd client.
func (*Client) GetLeader ¶
GetLeader returns the leader as recorded in Consul. If a leader exists, ok will be set to true, false otherwise.
func (*Client) InitializeLeader ¶
InitializeLeader sets the leader to the given details, but only if no leader has already been set. This operation is a check-and-set type operation. If initialization succeeds, ok is set to true.
type Config ¶
Config stores the configuration for the etcd client. The full definition is available at https://pkg.go.dev/go.etcd.io/etcd/clientv3#Config
func NewConfigFromFile ¶
NewConfigFromFile parses the file at path and returns a Config.
Click to show internal directories.
Click to hide internal directories.