Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FxTagBase is the tag's base used to identify the election result Tracker. FxTagBase = "etcd_election" // FxTag is the tag used to identify the election result Tracker. FxTag = config.NameTag(FxTagBase) // ElectionResultKey is the key used to identify the election result in the election Tracker. ElectionResultKey = notifiers.Key("election_result") )
Functions ¶
Types ¶
type Election ¶
type Election struct { Election *concurrencyv3.Election // contains filtered or unexported fields }
Election is a wrapper around etcd election.
func ProvideElection ¶
func ProvideElection(in ElectionIn) (*Election, error)
ProvideElection provides a wrapper around etcd based leader election.
Click to show internal directories.
Click to hide internal directories.