Versions in this module Expand all Collapse all v0 v0.8.1 Aug 1, 2018 v0.8.0 Jul 18, 2018 Changes in this version + const JitterFactor + type Config struct + Callbacks LeaderCallbacks + LeaseDuration time.Duration + Lock rl.Interface + RenewDeadline time.Duration + RetryPeriod time.Duration + TermLimit time.Duration + type LeaderCallbacks struct + OnNewLeader func(identity string) + OnStartedLeading func(stop <-chan struct{}) + OnStoppedLeading func() + type LeaderElector struct + func NewLeaderElector(lec Config) (*LeaderElector, error) + func (le *LeaderElector) GetLeader() string + func (le *LeaderElector) IsLeader() bool + func (le *LeaderElector) Run(task <-chan bool)