package
1.2.120
Repository: https://github.com/searking/golang.git
Documentation: pkg.go.dev

# Functions

NewDummyLock returns a locker which returns follower.
NewLeaderElector creates a LeaderElector from a LeaderElectionConfig.
Run starts a client with the provided config or failed if the config fails to validate.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
LeaderCallbacks are callbacks that are triggered during certain lifecycle events of the LeaderElector.
LeaderElector is a leader election client.
Record is the record that is stored in the leader election annotation.

# Interfaces

ResourceLocker offers a common interface for locking on arbitrary resources used in leader election.