Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityCriteria ¶
type AvailabilityCriteria func() bool
type Candidate ¶
type Candidate interface { Init() Deinit() AddAvailabilityCriteria(AvailabilityCriteria) TryBecomeLeader() bool RenewLeadershipLease() IsAvailable() bool IsCurrentLeader() bool UpdateCandidateStatus(bool) TrimCandidates() GetLeaderCandidates() []string SetState(State) SetLeaderAndCandidateFields() DoWork() LosingLeadership() signalslots.Signal BecameLeader() signalslots.Signal BecameFollower() signalslots.Signal CandidateUpdate() <-chan time.Time LeaderAttempt() <-chan time.Time LeaseRenewal() <-chan time.Time }
Click to show internal directories.
Click to hide internal directories.