# Packages
Package leaderetcd provides a etcd driver for package leader.
Package leaderredis provides a redis driver for package leader.
# Functions
NewElection returns a pointer to the newly constructed Election instance.
Providers returns a set of dependency providers for *Election and *Status.
WithDriver instructs the Providers to accept a leader election driver different from the default one.
WithDriverConstructor instructs the Providers to accept an alternative constructor for election driver.
# Variables
ErrNotALeader is an error triggered when Resign is called but the current node is not leader.
# Structs
DriverArgs is the argument for constructing new drivers.
Election is a struct that controls the leader election.
Option is the available options to configure package leader.
Status is a type that describes whether the current node is leader.
# Interfaces
No description provided by the author
Driver models a external storage that can be used for leader election.
StatusChanged is a channel for receiving StatusChanged events.
# Type aliases
ProvidersOptionFunc is the type of functional providersOption for Providers.