file

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL