Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderManager ¶
type LeaderManager struct {
// contains filtered or unexported fields
}
func NewKubernetesLockManager ¶
func NewKubernetesLockManager(configuration kube.LockConfiguration) *LeaderManager
func NewLeaderTrackingRaftLockManager ¶
func NewLeaderTrackingRaftLockManager(configuration raft.LockConfiguration, setLeader func(uint64)) *LeaderManager
func NewRaftLockManager ¶
func NewRaftLockManager(configuration raft.LockConfiguration) *LeaderManager
func (*LeaderManager) IsLeader ¶
func (lm *LeaderManager) IsLeader() bool
func (*LeaderManager) RegisterRoutine ¶
func (lm *LeaderManager) RegisterRoutine(fn func(ctx context.Context) error)
Click to show internal directories.
Click to hide internal directories.