Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientID ¶
type ClientID string
ClientID represents the ID of a client.
func NewClientIDFromInt ¶
type RetentionIndex ¶
type RetentionIndex uint64
RetentionIndex represents an abstract notion of system progress used in garbage collection. The basic idea is to associate various parts of the system (parts of the state, even whole modules) that are subject to eventual garbage collection with a retention index. As the system progresses, the retention index monotonically increases and parts of the system associated with a lower retention index can be garbage-collected.
func (RetentionIndex) Bytes ¶
func (ri RetentionIndex) Bytes() []byte
Bytes converts a RetentionIndex to a slice of bytes (useful for serialization).
func (RetentionIndex) Pb ¶
func (ri RetentionIndex) Pb() uint64
Pb converts a RetentionIndex to its underlying native type.
type SeqNr ¶
type SeqNr uint64
SeqNr represents the sequence number of a batch as assigned by the ordering protocol.
type TxNo ¶
type TxNo uint64
TxNo represents a request number a client assigns to its requests.
type VoteWeight ¶
type VoteWeight uint64
VoteWeight represents the weight of a node's vote when gathering quorums.
func (VoteWeight) Bytes ¶
func (vw VoteWeight) Bytes() []byte