pbftpbtypes

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 CatchUpRequest

type CatchUpRequest struct {
	Digest []uint8
	Sn     types.SeqNr
}

func CatchUpRequestFromPb

func CatchUpRequestFromPb(pb *pbftpb.CatchUpRequest) *CatchUpRequest

func (*CatchUpRequest) MirReflect

func (*CatchUpRequest) MirReflect() mirreflect.Type

func (*CatchUpRequest) Pb

type CatchUpResponse

type CatchUpResponse struct {
	Resp *Preprepare
}

func CatchUpResponseFromPb

func CatchUpResponseFromPb(pb *pbftpb.CatchUpResponse) *CatchUpResponse

func (*CatchUpResponse) MirReflect

func (*CatchUpResponse) MirReflect() mirreflect.Type

func (*CatchUpResponse) Pb

type Commit

type Commit struct {
	Sn     types.SeqNr
	View   types1.ViewNr
	Digest []uint8
}

func CommitFromPb

func CommitFromPb(pb *pbftpb.Commit) *Commit

func (*Commit) MirReflect

func (*Commit) MirReflect() mirreflect.Type

func (*Commit) Pb

func (m *Commit) Pb() *pbftpb.Commit

type Done

type Done struct {
	Digests [][]uint8
}

func DoneFromPb

func DoneFromPb(pb *pbftpb.Done) *Done

func (*Done) MirReflect

func (*Done) MirReflect() mirreflect.Type

func (*Done) Pb

func (m *Done) Pb() *pbftpb.Done

type Event

type Event struct {
	Type Event_Type
}

func EventFromPb

func EventFromPb(pb *pbftpb.Event) *Event

func (*Event) MirReflect

func (*Event) MirReflect() mirreflect.Type

func (*Event) Pb

func (m *Event) Pb() *pbftpb.Event

type Event_ProposeTimeout

type Event_ProposeTimeout struct {
	ProposeTimeout *ProposeTimeout
}

func (*Event_ProposeTimeout) MirReflect

func (*Event_ProposeTimeout) MirReflect() mirreflect.Type

func (*Event_ProposeTimeout) Pb

func (*Event_ProposeTimeout) Unwrap

func (w *Event_ProposeTimeout) Unwrap() *ProposeTimeout

type Event_Type

type Event_Type interface {
	mirreflect.GeneratedType

	Pb() pbftpb.Event_Type
	// contains filtered or unexported methods
}

func Event_TypeFromPb

func Event_TypeFromPb(pb pbftpb.Event_Type) Event_Type

type Event_TypeWrapper

type Event_TypeWrapper[T any] interface {
	Event_Type
	Unwrap() *T
}

type Event_ViewChangeSegTimeout

type Event_ViewChangeSegTimeout struct {
	ViewChangeSegTimeout *ViewChangeSegTimeout
}

func (*Event_ViewChangeSegTimeout) MirReflect

func (*Event_ViewChangeSegTimeout) Pb

func (*Event_ViewChangeSegTimeout) Unwrap

type Event_ViewChangeSnTimeout

type Event_ViewChangeSnTimeout struct {
	ViewChangeSnTimeout *ViewChangeSNTimeout
}

func (*Event_ViewChangeSnTimeout) MirReflect

func (*Event_ViewChangeSnTimeout) Pb

func (*Event_ViewChangeSnTimeout) Unwrap

type Message

type Message struct {
	Type Message_Type
}

func MessageFromPb

func MessageFromPb(pb *pbftpb.Message) *Message

func (*Message) MirReflect

func (*Message) MirReflect() mirreflect.Type

func (*Message) Pb

func (m *Message) Pb() *pbftpb.Message

type Message_CatchUpRequest

type Message_CatchUpRequest struct {
	CatchUpRequest *CatchUpRequest
}

func (*Message_CatchUpRequest) MirReflect

func (*Message_CatchUpRequest) MirReflect() mirreflect.Type

func (*Message_CatchUpRequest) Pb

func (*Message_CatchUpRequest) Unwrap

type Message_CatchUpResponse

type Message_CatchUpResponse struct {
	CatchUpResponse *CatchUpResponse
}

func (*Message_CatchUpResponse) MirReflect

func (*Message_CatchUpResponse) MirReflect() mirreflect.Type

func (*Message_CatchUpResponse) Pb

func (*Message_CatchUpResponse) Unwrap

type Message_Commit

type Message_Commit struct {
	Commit *Commit
}

func (*Message_Commit) MirReflect

func (*Message_Commit) MirReflect() mirreflect.Type

func (*Message_Commit) Pb

func (*Message_Commit) Unwrap

func (w *Message_Commit) Unwrap() *Commit

type Message_Done

type Message_Done struct {
	Done *Done
}

func (*Message_Done) MirReflect

func (*Message_Done) MirReflect() mirreflect.Type

func (*Message_Done) Pb

func (*Message_Done) Unwrap

func (w *Message_Done) Unwrap() *Done

type Message_MissingPreprepare

type Message_MissingPreprepare struct {
	MissingPreprepare *MissingPreprepare
}

func (*Message_MissingPreprepare) MirReflect

func (*Message_MissingPreprepare) Pb

func (*Message_MissingPreprepare) Unwrap

type Message_NewView

type Message_NewView struct {
	NewView *NewView
}

func (*Message_NewView) MirReflect

func (*Message_NewView) MirReflect() mirreflect.Type

func (*Message_NewView) Pb

func (*Message_NewView) Unwrap

func (w *Message_NewView) Unwrap() *NewView

type Message_Prepare

type Message_Prepare struct {
	Prepare *Prepare
}

func (*Message_Prepare) MirReflect

func (*Message_Prepare) MirReflect() mirreflect.Type

func (*Message_Prepare) Pb

func (*Message_Prepare) Unwrap

func (w *Message_Prepare) Unwrap() *Prepare

type Message_Preprepare

type Message_Preprepare struct {
	Preprepare *Preprepare
}

func (*Message_Preprepare) MirReflect

func (*Message_Preprepare) MirReflect() mirreflect.Type

func (*Message_Preprepare) Pb

func (*Message_Preprepare) Unwrap

func (w *Message_Preprepare) Unwrap() *Preprepare

type Message_PreprepareRequest

type Message_PreprepareRequest struct {
	PreprepareRequest *PreprepareRequest
}

func (*Message_PreprepareRequest) MirReflect

func (*Message_PreprepareRequest) Pb

func (*Message_PreprepareRequest) Unwrap

type Message_SignedViewChange

type Message_SignedViewChange struct {
	SignedViewChange *SignedViewChange
}

func (*Message_SignedViewChange) MirReflect

func (*Message_SignedViewChange) Pb

func (*Message_SignedViewChange) Unwrap

type Message_Type

type Message_Type interface {
	mirreflect.GeneratedType

	Pb() pbftpb.Message_Type
	// contains filtered or unexported methods
}

func Message_TypeFromPb

func Message_TypeFromPb(pb pbftpb.Message_Type) Message_Type

type Message_TypeWrapper

type Message_TypeWrapper[T any] interface {
	Message_Type
	Unwrap() *T
}

type MissingPreprepare

type MissingPreprepare struct {
	Preprepare *Preprepare
}

func MissingPreprepareFromPb

func MissingPreprepareFromPb(pb *pbftpb.MissingPreprepare) *MissingPreprepare

func (*MissingPreprepare) MirReflect

func (*MissingPreprepare) MirReflect() mirreflect.Type

func (*MissingPreprepare) Pb

type NewView

type NewView struct {
	View              types1.ViewNr
	ViewChangeSenders []string
	SignedViewChanges []*SignedViewChange
	PreprepareSeqNrs  []types.SeqNr
	Preprepares       []*Preprepare
}

func NewViewFromPb

func NewViewFromPb(pb *pbftpb.NewView) *NewView

func (*NewView) MirReflect

func (*NewView) MirReflect() mirreflect.Type

func (*NewView) Pb

func (m *NewView) Pb() *pbftpb.NewView

type PSetEntry

type PSetEntry struct {
	Sn     types.SeqNr
	View   types1.ViewNr
	Digest []uint8
}

func PSetEntryFromPb

func PSetEntryFromPb(pb *pbftpb.PSetEntry) *PSetEntry

func (*PSetEntry) MirReflect

func (*PSetEntry) MirReflect() mirreflect.Type

func (*PSetEntry) Pb

func (m *PSetEntry) Pb() *pbftpb.PSetEntry

type Prepare

type Prepare struct {
	Sn     types.SeqNr
	View   types1.ViewNr
	Digest []uint8
}

func PrepareFromPb

func PrepareFromPb(pb *pbftpb.Prepare) *Prepare

func (*Prepare) MirReflect

func (*Prepare) MirReflect() mirreflect.Type

func (*Prepare) Pb

func (m *Prepare) Pb() *pbftpb.Prepare

type Preprepare

type Preprepare struct {
	Sn      types.SeqNr
	View    types1.ViewNr
	Data    []uint8
	Aborted bool
}

func PreprepareFromPb

func PreprepareFromPb(pb *pbftpb.Preprepare) *Preprepare

func (*Preprepare) MirReflect

func (*Preprepare) MirReflect() mirreflect.Type

func (*Preprepare) Pb

func (m *Preprepare) Pb() *pbftpb.Preprepare

type PreprepareRequest

type PreprepareRequest struct {
	Digest []uint8
	Sn     types.SeqNr
}

func PreprepareRequestFromPb

func PreprepareRequestFromPb(pb *pbftpb.PreprepareRequest) *PreprepareRequest

func (*PreprepareRequest) MirReflect

func (*PreprepareRequest) MirReflect() mirreflect.Type

func (*PreprepareRequest) Pb

type ProposeTimeout

type ProposeTimeout struct {
	ProposeTimeout uint64
}

func ProposeTimeoutFromPb

func ProposeTimeoutFromPb(pb *pbftpb.ProposeTimeout) *ProposeTimeout

func (*ProposeTimeout) MirReflect

func (*ProposeTimeout) MirReflect() mirreflect.Type

func (*ProposeTimeout) Pb

type QSetEntry

type QSetEntry struct {
	Sn     types.SeqNr
	View   types1.ViewNr
	Digest []uint8
}

func QSetEntryFromPb

func QSetEntryFromPb(pb *pbftpb.QSetEntry) *QSetEntry

func (*QSetEntry) MirReflect

func (*QSetEntry) MirReflect() mirreflect.Type

func (*QSetEntry) Pb

func (m *QSetEntry) Pb() *pbftpb.QSetEntry

type SignedViewChange

type SignedViewChange struct {
	ViewChange *ViewChange
	Signature  []uint8
}

func SignedViewChangeFromPb

func SignedViewChangeFromPb(pb *pbftpb.SignedViewChange) *SignedViewChange

func (*SignedViewChange) MirReflect

func (*SignedViewChange) MirReflect() mirreflect.Type

func (*SignedViewChange) Pb

type ViewChange

type ViewChange struct {
	View types1.ViewNr
	PSet []*PSetEntry
	QSet []*QSetEntry
}

func ViewChangeFromPb

func ViewChangeFromPb(pb *pbftpb.ViewChange) *ViewChange

func (*ViewChange) MirReflect

func (*ViewChange) MirReflect() mirreflect.Type

func (*ViewChange) Pb

func (m *ViewChange) Pb() *pbftpb.ViewChange

type ViewChangeSNTimeout

type ViewChangeSNTimeout struct {
	View         types1.ViewNr
	NumCommitted uint64
}

func ViewChangeSNTimeoutFromPb

func ViewChangeSNTimeoutFromPb(pb *pbftpb.ViewChangeSNTimeout) *ViewChangeSNTimeout

func (*ViewChangeSNTimeout) MirReflect

func (*ViewChangeSNTimeout) MirReflect() mirreflect.Type

func (*ViewChangeSNTimeout) Pb

type ViewChangeSegTimeout

type ViewChangeSegTimeout struct {
	ViewChangeSegTimeout uint64
}

func (*ViewChangeSegTimeout) MirReflect

func (*ViewChangeSegTimeout) MirReflect() mirreflect.Type

func (*ViewChangeSegTimeout) Pb

Jump to

Keyboard shortcuts

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