Documentation
¶
Overview ¶
Package leaderrotation provide various leader rotation algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCarousel ¶ added in v0.5.0
func NewCarousel() modules.LeaderRotation
NewCarousel returns a new instance of the Carousel leader-election algorithm.
func NewFixed ¶
func NewFixed(leader hotstuff.ID) modules.LeaderRotation
NewFixed returns a new fixed-leader leader rotation implementation.
func NewRepBased ¶ added in v0.5.0
func NewRepBased() modules.LeaderRotation
NewRepBased returns a new random reputation-based leader rotation implementation
func NewRoundRobin ¶
func NewRoundRobin() modules.LeaderRotation
NewRoundRobin returns a new round-robin leader rotation implementation.
func NewTreeLeader ¶ added in v0.5.0
func NewTreeLeader() *treeLeader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.