Versions in this module Expand all Collapse all v1 v1.0.0 Jul 11, 2017 Changes in this version + func GetMsgExpirationTimeout() time.Duration + func SetLeaderAliveThreshold(t time.Duration) + func SetLeaderElectionDuration(t time.Duration) + func SetMembershipSampleInterval(t time.Duration) + func SetStartupGracePeriod(t time.Duration) + type LeaderElectionAdapter interface + Accept func() <-chan Msg + CreateMessage func(isDeclaration bool) Msg + Gossip func(Msg) + Peers func() []Peer + func NewAdapter(gossip gossip, pkiid common.PKIidType, channel common.ChainID) LeaderElectionAdapter + type LeaderElectionService interface + IsLeader func() bool + Stop func() + func NewLeaderElectionService(adapter LeaderElectionAdapter, id string, callback leadershipCallback) LeaderElectionService + type Msg interface + IsDeclaration func() bool + IsProposal func() bool + SenderID func() peerID + type Peer interface + ID func() peerID