bcbpbtypes

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastRequest

type BroadcastRequest struct {
	Data []uint8
}

func BroadcastRequestFromPb

func BroadcastRequestFromPb(pb *bcbpb.BroadcastRequest) *BroadcastRequest

func (*BroadcastRequest) MirReflect

func (*BroadcastRequest) MirReflect() mirreflect.Type

func (*BroadcastRequest) Pb

type Deliver

type Deliver struct {
	Data []uint8
}

func DeliverFromPb

func DeliverFromPb(pb *bcbpb.Deliver) *Deliver

func (*Deliver) MirReflect

func (*Deliver) MirReflect() mirreflect.Type

func (*Deliver) Pb

func (m *Deliver) Pb() *bcbpb.Deliver

type EchoMessage

type EchoMessage struct {
	Signature []uint8
}

func EchoMessageFromPb

func EchoMessageFromPb(pb *bcbpb.EchoMessage) *EchoMessage

func (*EchoMessage) MirReflect

func (*EchoMessage) MirReflect() mirreflect.Type

func (*EchoMessage) Pb

func (m *EchoMessage) Pb() *bcbpb.EchoMessage

type Event

type Event struct {
	Type Event_Type
}

func EventFromPb

func EventFromPb(pb *bcbpb.Event) *Event

func (*Event) MirReflect

func (*Event) MirReflect() mirreflect.Type

func (*Event) Pb

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

type Event_Deliver

type Event_Deliver struct {
	Deliver *Deliver
}

func (*Event_Deliver) MirReflect

func (*Event_Deliver) MirReflect() mirreflect.Type

func (*Event_Deliver) Pb

func (w *Event_Deliver) Pb() bcbpb.Event_Type

func (*Event_Deliver) Unwrap

func (w *Event_Deliver) Unwrap() *Deliver

type Event_Request

type Event_Request struct {
	Request *BroadcastRequest
}

func (*Event_Request) MirReflect

func (*Event_Request) MirReflect() mirreflect.Type

func (*Event_Request) Pb

func (w *Event_Request) Pb() bcbpb.Event_Type

func (*Event_Request) Unwrap

func (w *Event_Request) Unwrap() *BroadcastRequest

type Event_Type

type Event_Type interface {
	mirreflect.GeneratedType

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

func Event_TypeFromPb

func Event_TypeFromPb(pb bcbpb.Event_Type) Event_Type

type Event_TypeWrapper

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

type FinalMessage

type FinalMessage struct {
	Data       []uint8
	Signers    []types.NodeID
	Signatures [][]uint8
}

func FinalMessageFromPb

func FinalMessageFromPb(pb *bcbpb.FinalMessage) *FinalMessage

func (*FinalMessage) MirReflect

func (*FinalMessage) MirReflect() mirreflect.Type

func (*FinalMessage) Pb

func (m *FinalMessage) Pb() *bcbpb.FinalMessage

type Message

type Message struct {
	Type Message_Type
}

func MessageFromPb

func MessageFromPb(pb *bcbpb.Message) *Message

func (*Message) MirReflect

func (*Message) MirReflect() mirreflect.Type

func (*Message) Pb

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

type Message_EchoMessage

type Message_EchoMessage struct {
	EchoMessage *EchoMessage
}

func (*Message_EchoMessage) MirReflect

func (*Message_EchoMessage) MirReflect() mirreflect.Type

func (*Message_EchoMessage) Pb

func (*Message_EchoMessage) Unwrap

func (w *Message_EchoMessage) Unwrap() *EchoMessage

type Message_FinalMessage

type Message_FinalMessage struct {
	FinalMessage *FinalMessage
}

func (*Message_FinalMessage) MirReflect

func (*Message_FinalMessage) MirReflect() mirreflect.Type

func (*Message_FinalMessage) Pb

func (*Message_FinalMessage) Unwrap

func (w *Message_FinalMessage) Unwrap() *FinalMessage

type Message_StartMessage

type Message_StartMessage struct {
	StartMessage *StartMessage
}

func (*Message_StartMessage) MirReflect

func (*Message_StartMessage) MirReflect() mirreflect.Type

func (*Message_StartMessage) Pb

func (*Message_StartMessage) Unwrap

func (w *Message_StartMessage) Unwrap() *StartMessage

type Message_Type

type Message_Type interface {
	mirreflect.GeneratedType

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

func Message_TypeFromPb

func Message_TypeFromPb(pb bcbpb.Message_Type) Message_Type

type Message_TypeWrapper

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

type StartMessage

type StartMessage struct {
	Data []uint8
}

func StartMessageFromPb

func StartMessageFromPb(pb *bcbpb.StartMessage) *StartMessage

func (*StartMessage) MirReflect

func (*StartMessage) MirReflect() mirreflect.Type

func (*StartMessage) Pb

func (m *StartMessage) Pb() *bcbpb.StartMessage

Jump to

Keyboard shortcuts

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