Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mastership ¶
type Mastership struct { // Device is the identifier of the device to which this mastership related Device topodevice.ID // Term is the mastership term Term Term // Master is the NodeID of the master for the device Master cluster.NodeID }
Mastership contains information about a device mastership term
type Store ¶
type Store interface { io.Closer // NodeID returns the local node identifier used in mastership elections NodeID() cluster.NodeID // IsMaster returns a boolean indicating whether the local node is the master for the given device IsMaster(id topodevice.ID) (bool, error) // Watch watches the store for mastership changes Watch(topodevice.ID, chan<- Mastership) error }
Store is the device mastership store
func NewAtomixStore ¶
NewAtomixStore returns a new persistent Store
Click to show internal directories.
Click to hide internal directories.