{"modulePath":"github.com/mobiledgex/jaeger","version":"v1.13.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package leaderelection\n\n## Types\n\n```go\ntype ElectionParticipant interface {\n\tIsLeader() bool\n}\n```\nElectionParticipant partakes in leader election to become leader.\n\n```go\nfunc NewElectionParticipant(lock dl.Lock, resourceName string, options ElectionParticipantOptions) ElectionParticipant\n```\nNewElectionParticipant returns a ElectionParticipant which attempts to become leader.\n\n```go\ntype ElectionParticipantOptions struct {\n\tLeaderLeaseRefreshInterval   time.Duration\n\tFollowerLeaseRefreshInterval time.Duration\n\tLogger                       *zap.Logger\n}\n```\nElectionParticipantOptions control behavior of the election participant. TODO func applyDefaults(), parameter error checking, etc.\n\n","path":"github.com/mobiledgex/jaeger/plugin/sampling/internal/leaderelection","name":"leaderelection","synopsis":"","isRedistributable":true}
