Documentation ¶
Index ¶
- func Deserialize(data []byte) (*trantorpbtypes.Membership, error)
- func HaveStrongQuorum(membership *trantorpbtypes.Membership, nodeIDs []t.NodeID) bool
- func HaveWeakQuorum(membership *trantorpbtypes.Membership, nodeIDs []t.NodeID) bool
- func Serialize(membership *trantorpbtypes.Membership) ([]byte, error)
- func StrongQuorum(membership *trantorpbtypes.Membership) tt.VoteWeight
- func TotalWeight(membership *trantorpbtypes.Membership) tt.VoteWeight
- func Valid(membership *trantorpbtypes.Membership) error
- func WeakQuorum(membership *trantorpbtypes.Membership) tt.VoteWeight
- func WeightOf(membership *trantorpbtypes.Membership, nodeIDs []t.NodeID) tt.VoteWeight
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.
Click to show internal directories.
Click to hide internal directories.