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 cluster.NodeID }
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() cluster.NodeID // 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
func NewAtomixStore ¶
NewAtomixStore returns a new persistent Store
Click to show internal directories.
Click to hide internal directories.