types

package
v0.0.0-...-bd4e2c0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeIDSlicePb

func NodeIDSlicePb(nids []NodeID) []uint64

NodeIDSlicePb converts a slice of NodeIDs to a slice of the native type underlying NodeID. This is required for serialization using Protocol Buffers.

Types

type ClientID

type ClientID uint64

ClientID represents the numeric ID of a client.

func (ClientID) Pb

func (cid ClientID) Pb() uint64

Pb converts a ClientID to its underlying native type.

type EpochNr

type EpochNr uint64

EpochNr represents the number of an epoch.

func (EpochNr) Pb

func (e EpochNr) Pb() uint64

Pb converts an EpochNr number to its underlying native type.

type NodeID

type NodeID uint64

NodeID represents the numeric ID of a node.

func (NodeID) Pb

func (nid NodeID) Pb() uint64

Pb converts a NodeID to its underlying native type.

type NumRequests

type NumRequests uint64

NumRequests represents the number of requests (e.g. pending in some buffer)

func (NumRequests) Pb

func (nr NumRequests) Pb() uint64

Pb converts an EpochNr number to its underlying native type.

type PBFTViewNr

type PBFTViewNr uint64

PBFTViewNr represents the view number in the PBFT protocol (used as a sub-protocol of ISS)

func (PBFTViewNr) Pb

func (v PBFTViewNr) Pb() uint64

Pb converts a PBFTViewNr to its underlying native type

type ReqNo

type ReqNo uint64

ReqNo represents a request number a client assigns to its requests.

func (ReqNo) Pb

func (rn ReqNo) Pb() uint64

Pb converts a ReqNo to its underlying native type.

type SBInstanceID

type SBInstanceID uint64

SBInstanceID represents the ID of an instance of Sequenced Broadcast (SB)

func (SBInstanceID) Pb

func (iid SBInstanceID) Pb() uint64

Pb converts a SBInstanceID to its underlying native type.

type SeqNr

type SeqNr uint64

SeqNr represents the sequence number of a batch as assigned by the ordering protocol.

func (SeqNr) Pb

func (sn SeqNr) Pb() uint64

Pb converts a SeqNr to its underlying native type.

type WALRetIndex

type WALRetIndex uint64

WALRetIndex represents the WAL (Write-Ahead Log) retention index assigned to every entry (and used for truncating).

func (WALRetIndex) Pb

func (wri WALRetIndex) Pb() uint64

Pb converts a WALRetIndex to its underlying native type.

Jump to

Keyboard shortcuts

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