# Functions
GetMsgExpirationTimeout return leadership message expiration timeout.
NewAdapter creates new leader election adapter.
NewLeaderElectionService returns a new LeaderElectionService.
SetLeaderAliveThreshold configures leader election alive threshold.
SetLeaderElectionDuration configures expected leadership election duration, interval to wait until leader election will be completed.
SetMembershipSampleInterval setups/initializes the frequency the membership view should be checked.
SetStartupGracePeriod configures startup grace period interval, the period of time to wait until election algorithm will start.
# Interfaces
LeaderElectionAdapter is used by the leader election module to send and receive messages and to get membership information.
LeaderElectionService is the object that runs the leader election algorithm.
Msg describes a message sent from a remote peer.
Peer describes a remote peer.