Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderElection ¶
type LeaderElection interface { Campaign(ctx context.Context) error Resign(ctx context.Context) error IsLeader(ctx context.Context) (bool, error) }
func NewEtcdLeaderElection ¶
func NewEtcdLeaderElection(client *clientV3.Client, key, id string, ttl int) LeaderElection
NewEtcdLeaderElection creates a new instance of etcdLeaderElection.
Click to show internal directories.
Click to hide internal directories.