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 device.ID // Term is the mastership term Term Term // Master is the NodeID of the master for the device Master string }
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() string // GetMastership returns the mastership for a given device GetMastership(id device.ID) (*Mastership, error) // Watch watches the store for mastership changes Watch(device.ID, chan<- Mastership) error }
Store is the device mastership store
Click to show internal directories.
Click to hide internal directories.