Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComponent ¶
func NewComponent() *electorComponent
Types ¶
type CallbackPhase ¶
type CallbackPhase int
const ( CallbackPhasePostStarted CallbackPhase = 1 CallbackPhasePostStopped CallbackPhase = 2 )
type LeaderElectCallback ¶
type LeaderElectCallback func(CallbackPhase)
type LeaderElector ¶
type LeaderElector interface { Start(stop <-chan struct{}) IsLeader() bool AddCallbacks(...LeaderElectCallback) }
Click to show internal directories.
Click to hide internal directories.