transportpbtypes

package
v0.0.0-...-9727c61 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 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 Event

type Event struct {
	Type Event_Type
}

func EventFromPb

func EventFromPb(pb *transportpb.Event) *Event

func (*Event) MirReflect

func (*Event) MirReflect() mirreflect.Type

func (*Event) Pb

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

type Event_MessageReceived

type Event_MessageReceived struct {
	MessageReceived *MessageReceived
}

func (*Event_MessageReceived) MirReflect

func (*Event_MessageReceived) MirReflect() mirreflect.Type

func (*Event_MessageReceived) Pb

func (*Event_MessageReceived) Unwrap

type Event_SendMessage

type Event_SendMessage struct {
	SendMessage *SendMessage
}

func (*Event_SendMessage) MirReflect

func (*Event_SendMessage) MirReflect() mirreflect.Type

func (*Event_SendMessage) Pb

func (*Event_SendMessage) Unwrap

func (w *Event_SendMessage) Unwrap() *SendMessage

type Event_Type

type Event_Type interface {
	mirreflect.GeneratedType

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

func Event_TypeFromPb

func Event_TypeFromPb(pb transportpb.Event_Type) Event_Type

type Event_TypeWrapper

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

type MessageReceived

type MessageReceived struct {
	From stdtypes.NodeID
	Msg  *types.Message
}

func MessageReceivedFromPb

func MessageReceivedFromPb(pb *transportpb.MessageReceived) *MessageReceived

func (*MessageReceived) MirReflect

func (*MessageReceived) MirReflect() mirreflect.Type

func (*MessageReceived) Pb

type SendMessage

type SendMessage struct {
	Msg          *types.Message
	Destinations []stdtypes.NodeID
}

func SendMessageFromPb

func SendMessageFromPb(pb *transportpb.SendMessage) *SendMessage

func (*SendMessage) MirReflect

func (*SendMessage) MirReflect() mirreflect.Type

func (*SendMessage) Pb

Jump to

Keyboard shortcuts

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