Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elector ¶
type Elector struct {
// contains filtered or unexported fields
}
Elector is a helper type for performing and managing leader election
func (*Elector) SeizeThrone ¶
func (e *Elector) SeizeThrone() <-chan struct{}
SeizeThrone attempts to attain a leader lock among multiple instances. The returned channel return a value if this instance was elected
Click to show internal directories.
Click to hide internal directories.