Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
Election is a wrapper around etcd election.
func ProvideElection ¶
func ProvideElection(key string, in ElectionIn) *Election
ProvideElection provides a wrapper around etcd based leader election for arbitrary key.
Note: This is not exposed directly by any module – controller and agent have their own leader election fx Options.
type ElectionIn ¶
type ElectionIn struct { fx.In Lifecycle fx.Lifecycle Shutdowner fx.Shutdowner Session *etcd.Session }
ElectionIn holds parameters for ProvideElection.
Click to show internal directories.
Click to hide internal directories.