package
0.3.0
Repository: https://github.com/matrixorigin/matrixcube.git
Documentation: pkg.go.dev

# Functions

NewElector create a elector.
WithEmbedEtcd with embed etcd.
WithLeaderLeaseSeconds set leader lease in seconds.
WithLockIfBecomeLeader set lock enable flag if become leader, If true, will add a distributed lock, and will unlock on become follower, ensure that the other nodes can be changed to leaders after the previous leader has processed the role changes.
WithLogger sets logger.
WithPrefix set data prefix in embed etcd server.

# Structs

LeaderLease is used for renewing leadership.
Leadership is used to manage the leadership campaigning.

# Interfaces

Elector a leader elector.

# Type aliases

ElectorOption elector option.