membutil

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(data []byte) (*trantorpbtypes.Membership, error)

func HaveStrongQuorum

func HaveStrongQuorum(membership *trantorpbtypes.Membership, nodeIDs []t.NodeID) bool

func HaveWeakQuorum

func HaveWeakQuorum(membership *trantorpbtypes.Membership, nodeIDs []t.NodeID) bool

func Serialize

func Serialize(membership *trantorpbtypes.Membership) ([]byte, error)

func StrongQuorum

func StrongQuorum(membership *trantorpbtypes.Membership) tt.VoteWeight

func TotalWeight

func TotalWeight(membership *trantorpbtypes.Membership) tt.VoteWeight

func Valid added in v0.4.3

func Valid(membership *trantorpbtypes.Membership) error

func WeakQuorum

func WeakQuorum(membership *trantorpbtypes.Membership) tt.VoteWeight

func WeightOf

func WeightOf(membership *trantorpbtypes.Membership, nodeIDs []t.NodeID) tt.VoteWeight

Types

This section is empty.

Jump to

Keyboard shortcuts

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