Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + const JitterFactor + func RunOrDie(lec LeaderElectionConfig) + type LeaderCallbacks struct + OnNewLeader func(identity string) + OnStartedLeading func(stop <-chan struct{}) + OnStoppedLeading func() + type LeaderElectionConfig struct + Callbacks LeaderCallbacks + LeaseDuration time.Duration + Lock rl.Interface + RenewDeadline time.Duration + RetryPeriod time.Duration + type LeaderElector struct + func NewLeaderElector(lec LeaderElectionConfig) (*LeaderElector, error) + func (le *LeaderElector) GetLeader() string + func (le *LeaderElector) IsLeader() bool + func (le *LeaderElector) Run()