Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deterministic ¶
type Deterministic struct {
// contains filtered or unexported fields
}
Deterministic Round robin leader selection is a fair and sequential leader selection. Each instance/ round change the next leader is selected one-by-one.
func New ¶
func New(seed []byte, operatorIDs []uint64) (*Deterministic, error)
New returns a new Deterministic instance or error
func (*Deterministic) Calculate ¶
func (rr *Deterministic) Calculate(round uint64) uint64
Calculate returns the current leader
Click to show internal directories.
Click to hide internal directories.