Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
NewDetector return an implementation of leader detector This implementation checks a file for its content. If the content matches the id of the detector then this instance is the leader.
Types ¶
type Store ¶
type Store string
Store is the location of a file that stores the location of the leader
func (Store) GetLocation ¶
GetLocation returns the location of the leader
Click to show internal directories.
Click to hide internal directories.