leaderrotation

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL