Documentation ¶
Overview ¶
Package etcd provides an implementation of master election based on etcd.
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 an implementation of election.Election based on etcd.
func (*Election) Close ¶
Close resigns and permanently stops participating in election. No other method should be called after Close.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory creates Election instances.
func NewFactory ¶
NewFactory builds an election factory that uses the given parameters. The passed in etcd client should remain valid for the lifetime of the object.
Click to show internal directories.
Click to hide internal directories.