trantorpbtypes

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientProgress

type ClientProgress struct {
	Progress map[types.ClientID]*DeliveredTXs
}

func ClientProgressFromPb

func ClientProgressFromPb(pb *trantorpb.ClientProgress) *ClientProgress

func (*ClientProgress) MirReflect

func (*ClientProgress) MirReflect() mirreflect.Type

func (*ClientProgress) Pb

type DeliveredTXs

type DeliveredTXs struct {
	LowWm     uint64
	Delivered []uint64
}

func DeliveredTXsFromPb

func DeliveredTXsFromPb(pb *trantorpb.DeliveredTXs) *DeliveredTXs

func (*DeliveredTXs) MirReflect

func (*DeliveredTXs) MirReflect() mirreflect.Type

func (*DeliveredTXs) Pb

type EpochConfig

type EpochConfig struct {
	EpochNr     types.EpochNr
	FirstSn     types.SeqNr
	Length      uint64
	Memberships []*Membership
}

func EpochConfigFromPb

func EpochConfigFromPb(pb *trantorpb.EpochConfig) *EpochConfig

func (*EpochConfig) MirReflect

func (*EpochConfig) MirReflect() mirreflect.Type

func (*EpochConfig) Pb

type EpochData

type EpochData struct {
	EpochConfig        *EpochConfig
	ClientProgress     *ClientProgress
	LeaderPolicy       []uint8
	PreviousMembership *Membership
}

func EpochDataFromPb

func EpochDataFromPb(pb *trantorpb.EpochData) *EpochData

func (*EpochData) MirReflect

func (*EpochData) MirReflect() mirreflect.Type

func (*EpochData) Pb

func (m *EpochData) Pb() *trantorpb.EpochData

type Membership

type Membership struct {
	Nodes map[types2.NodeID]*NodeIdentity
}

func MembershipFromPb

func MembershipFromPb(pb *trantorpb.Membership) *Membership

func (*Membership) MirReflect

func (*Membership) MirReflect() mirreflect.Type

func (*Membership) Pb

func (m *Membership) Pb() *trantorpb.Membership

type NodeIdentity

type NodeIdentity struct {
	Id     types2.NodeID
	Addr   string
	Key    []uint8
	Weight types.VoteWeight
}

func NodeIdentityFromPb

func NodeIdentityFromPb(pb *trantorpb.NodeIdentity) *NodeIdentity

func (*NodeIdentity) MirReflect

func (*NodeIdentity) MirReflect() mirreflect.Type

func (*NodeIdentity) Pb

type StateSnapshot

type StateSnapshot struct {
	AppData   []uint8
	EpochData *EpochData
}

func StateSnapshotFromPb

func StateSnapshotFromPb(pb *trantorpb.StateSnapshot) *StateSnapshot

func (*StateSnapshot) MirReflect

func (*StateSnapshot) MirReflect() mirreflect.Type

func (*StateSnapshot) Pb

type Transaction

type Transaction struct {
	ClientId types.ClientID
	TxNo     types.TxNo
	Type     uint64
	Data     []uint8
}

func TransactionFromPb

func TransactionFromPb(pb *trantorpb.Transaction) *Transaction

func (*Transaction) MirReflect

func (*Transaction) MirReflect() mirreflect.Type

func (*Transaction) Pb

Jump to

Keyboard shortcuts

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