Documentation ¶ Index ¶ func NewDetector(pollInterval time.Duration, filename, id string) (leader.Detector, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDetector ¶ func NewDetector(pollInterval time.Duration, filename, id string) (leader.Detector, error) 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 ¶ This section is empty. Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.