trantorpb

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_trantorpb_trantorpb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClientProgress

type ClientProgress struct {
	Progress map[string]*DeliveredTXs `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ClientProgress) Descriptor deprecated

func (*ClientProgress) Descriptor() ([]byte, []int)

Deprecated: Use ClientProgress.ProtoReflect.Descriptor instead.

func (*ClientProgress) GetProgress

func (x *ClientProgress) GetProgress() map[string]*DeliveredTXs

func (*ClientProgress) ProtoMessage

func (*ClientProgress) ProtoMessage()

func (*ClientProgress) ProtoReflect

func (x *ClientProgress) ProtoReflect() protoreflect.Message

func (*ClientProgress) Reset

func (x *ClientProgress) Reset()

func (*ClientProgress) String

func (x *ClientProgress) String() string

type DeliveredTXs

type DeliveredTXs struct {
	LowWm     uint64   `protobuf:"varint,1,opt,name=low_wm,json=lowWm,proto3" json:"low_wm,omitempty"`
	Delivered []uint64 `protobuf:"varint,2,rep,packed,name=delivered,proto3" json:"delivered,omitempty"`
	// contains filtered or unexported fields
}

func (*DeliveredTXs) Descriptor deprecated

func (*DeliveredTXs) Descriptor() ([]byte, []int)

Deprecated: Use DeliveredTXs.ProtoReflect.Descriptor instead.

func (*DeliveredTXs) GetDelivered

func (x *DeliveredTXs) GetDelivered() []uint64

func (*DeliveredTXs) GetLowWm

func (x *DeliveredTXs) GetLowWm() uint64

func (*DeliveredTXs) ProtoMessage

func (*DeliveredTXs) ProtoMessage()

func (*DeliveredTXs) ProtoReflect

func (x *DeliveredTXs) ProtoReflect() protoreflect.Message

func (*DeliveredTXs) Reset

func (x *DeliveredTXs) Reset()

func (*DeliveredTXs) String

func (x *DeliveredTXs) String() string

type EpochConfig

type EpochConfig struct {
	EpochNr     uint64        `protobuf:"varint,1,opt,name=epoch_nr,json=epochNr,proto3" json:"epoch_nr,omitempty"`
	FirstSn     uint64        `protobuf:"varint,2,opt,name=first_sn,json=firstSn,proto3" json:"first_sn,omitempty"`
	Length      uint64        `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
	Memberships []*Membership `protobuf:"bytes,4,rep,name=memberships,proto3" json:"memberships,omitempty"`
	// contains filtered or unexported fields
}

func (*EpochConfig) Descriptor deprecated

func (*EpochConfig) Descriptor() ([]byte, []int)

Deprecated: Use EpochConfig.ProtoReflect.Descriptor instead.

func (*EpochConfig) GetEpochNr

func (x *EpochConfig) GetEpochNr() uint64

func (*EpochConfig) GetFirstSn

func (x *EpochConfig) GetFirstSn() uint64

func (*EpochConfig) GetLength

func (x *EpochConfig) GetLength() uint64

func (*EpochConfig) GetMemberships

func (x *EpochConfig) GetMemberships() []*Membership

func (*EpochConfig) ProtoMessage

func (*EpochConfig) ProtoMessage()

func (*EpochConfig) ProtoReflect

func (x *EpochConfig) ProtoReflect() protoreflect.Message

func (*EpochConfig) Reset

func (x *EpochConfig) Reset()

func (*EpochConfig) String

func (x *EpochConfig) String() string

type EpochData

type EpochData struct {
	EpochConfig        *EpochConfig    `protobuf:"bytes,1,opt,name=epoch_config,json=epochConfig,proto3" json:"epoch_config,omitempty"`
	ClientProgress     *ClientProgress `protobuf:"bytes,2,opt,name=client_progress,json=clientProgress,proto3" json:"client_progress,omitempty"`
	LeaderPolicy       []byte          `protobuf:"bytes,3,opt,name=leader_policy,json=leaderPolicy,proto3" json:"leader_policy,omitempty"`
	PreviousMembership *Membership     `protobuf:"bytes,4,opt,name=previous_membership,json=previousMembership,proto3" json:"previous_membership,omitempty"`
	// contains filtered or unexported fields
}

func (*EpochData) Descriptor deprecated

func (*EpochData) Descriptor() ([]byte, []int)

Deprecated: Use EpochData.ProtoReflect.Descriptor instead.

func (*EpochData) GetClientProgress

func (x *EpochData) GetClientProgress() *ClientProgress

func (*EpochData) GetEpochConfig

func (x *EpochData) GetEpochConfig() *EpochConfig

func (*EpochData) GetLeaderPolicy

func (x *EpochData) GetLeaderPolicy() []byte

func (*EpochData) GetPreviousMembership

func (x *EpochData) GetPreviousMembership() *Membership

func (*EpochData) ProtoMessage

func (*EpochData) ProtoMessage()

func (*EpochData) ProtoReflect

func (x *EpochData) ProtoReflect() protoreflect.Message

func (*EpochData) Reset

func (x *EpochData) Reset()

func (*EpochData) String

func (x *EpochData) String() string

type Membership

type Membership struct {
	Nodes map[string]*NodeIdentity `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Membership) Descriptor deprecated

func (*Membership) Descriptor() ([]byte, []int)

Deprecated: Use Membership.ProtoReflect.Descriptor instead.

func (*Membership) GetNodes

func (x *Membership) GetNodes() map[string]*NodeIdentity

func (*Membership) ProtoMessage

func (*Membership) ProtoMessage()

func (*Membership) ProtoReflect

func (x *Membership) ProtoReflect() protoreflect.Message

func (*Membership) Reset

func (x *Membership) Reset()

func (*Membership) String

func (x *Membership) String() string

type NodeIdentity

type NodeIdentity struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Addr   string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Value type is Multiaddr, convert in code directly.
	Key    []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Weight string `protobuf:"bytes,4,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeIdentity) Descriptor deprecated

func (*NodeIdentity) Descriptor() ([]byte, []int)

Deprecated: Use NodeIdentity.ProtoReflect.Descriptor instead.

func (*NodeIdentity) GetAddr

func (x *NodeIdentity) GetAddr() string

func (*NodeIdentity) GetId

func (x *NodeIdentity) GetId() string

func (*NodeIdentity) GetKey

func (x *NodeIdentity) GetKey() []byte

func (*NodeIdentity) GetWeight

func (x *NodeIdentity) GetWeight() string

func (*NodeIdentity) ProtoMessage

func (*NodeIdentity) ProtoMessage()

func (*NodeIdentity) ProtoReflect

func (x *NodeIdentity) ProtoReflect() protoreflect.Message

func (*NodeIdentity) Reset

func (x *NodeIdentity) Reset()

func (*NodeIdentity) String

func (x *NodeIdentity) String() string

type StateSnapshot

type StateSnapshot struct {
	AppData   []byte     `protobuf:"bytes,1,opt,name=app_data,json=appData,proto3" json:"app_data,omitempty"`
	EpochData *EpochData `protobuf:"bytes,2,opt,name=epoch_data,json=epochData,proto3" json:"epoch_data,omitempty"`
	// contains filtered or unexported fields
}

func (*StateSnapshot) Descriptor deprecated

func (*StateSnapshot) Descriptor() ([]byte, []int)

Deprecated: Use StateSnapshot.ProtoReflect.Descriptor instead.

func (*StateSnapshot) GetAppData

func (x *StateSnapshot) GetAppData() []byte

func (*StateSnapshot) GetEpochData

func (x *StateSnapshot) GetEpochData() *EpochData

func (*StateSnapshot) ProtoMessage

func (*StateSnapshot) ProtoMessage()

func (*StateSnapshot) ProtoReflect

func (x *StateSnapshot) ProtoReflect() protoreflect.Message

func (*StateSnapshot) Reset

func (x *StateSnapshot) Reset()

func (*StateSnapshot) String

func (x *StateSnapshot) String() string

type Transaction

type Transaction struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	TxNo     uint64 `protobuf:"varint,2,opt,name=tx_no,json=txNo,proto3" json:"tx_no,omitempty"`
	Type     uint64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // TODO not being used at the moment? (only some boilerplate code in pkg/serializing)
	Data     []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetClientId

func (x *Transaction) GetClientId() string

func (*Transaction) GetData

func (x *Transaction) GetData() []byte

func (*Transaction) GetTxNo

func (x *Transaction) GetTxNo() uint64

func (*Transaction) GetType

func (x *Transaction) GetType() uint64

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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