Versions in this module Expand all Collapse all v0 v0.1.0 Apr 7, 2016 Changes in this version + type Candidate struct + func NewCandidate(client store.Store, key, node string, ttl time.Duration) *Candidate + func (c *Candidate) IsLeader() bool + func (c *Candidate) Resign() + func (c *Candidate) RunForElection() (<-chan bool, <-chan error) + func (c *Candidate) Stop() + type Follower struct + func NewFollower(client store.Store, key string) *Follower + func (f *Follower) FollowElection() (<-chan string, <-chan error) + func (f *Follower) Leader() string + func (f *Follower) Stop()