Versions in this module Expand all Collapse all v1 v1.15.1 Nov 7, 2019 Changes in this version + type DistributedElectionParticipant struct + func NewElectionParticipant(lock dl.Lock, resourceName string, options ElectionParticipantOptions) *DistributedElectionParticipant + func (p *DistributedElectionParticipant) Close() error + func (p *DistributedElectionParticipant) IsLeader() bool + func (p *DistributedElectionParticipant) Start() error + type ElectionParticipant interface + IsLeader func() bool + type ElectionParticipantOptions struct + FollowerLeaseRefreshInterval time.Duration + LeaderLeaseRefreshInterval time.Duration + Logger *zap.Logger