Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leadership ¶
type Leadership struct { // Term is the leadership term Term Term // Leader is the NodeID of the leader Leader string }
Leadership contains information about a leadership term
type Store ¶
type Store interface { io.Closer // NodeID returns the local node identifier used in the election NodeID() string // IsLeader returns a boolean indicating whether the local node is the leader IsLeader() (bool, error) // Watch watches the store for changes Watch(chan<- Leadership) error }
Store is the cluster wide leadership store
Click to show internal directories.
Click to hide internal directories.