transportpb

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

View Source
var File_transportpb_transportpb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {

	// Types that are assignable to Type:
	//	*Event_SendMessage
	//	*Event_MessageReceived
	Type isEvent_Type `protobuf_oneof:"Type"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetMessageReceived

func (x *Event) GetMessageReceived() *MessageReceived

func (*Event) GetSendMessage

func (x *Event) GetSendMessage() *SendMessage

func (*Event) GetType

func (m *Event) GetType() isEvent_Type

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) ReflectTypeOptions

func (*Event) ReflectTypeOptions() []reflect.Type

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_MessageReceived

type Event_MessageReceived struct {
	MessageReceived *MessageReceived `protobuf:"bytes,2,opt,name=message_received,json=messageReceived,proto3,oneof"`
}

func (*Event_MessageReceived) Unwrap

type Event_SendMessage

type Event_SendMessage struct {
	SendMessage *SendMessage `protobuf:"bytes,1,opt,name=send_message,json=sendMessage,proto3,oneof"`
}

func (*Event_SendMessage) Unwrap

func (w *Event_SendMessage) Unwrap() *SendMessage

type Event_Type

type Event_Type = isEvent_Type

type Event_TypeWrapper

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

type MessageReceived

type MessageReceived struct {
	From string             `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Msg  *messagepb.Message `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageReceived) Descriptor deprecated

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

Deprecated: Use MessageReceived.ProtoReflect.Descriptor instead.

func (*MessageReceived) GetFrom

func (x *MessageReceived) GetFrom() string

func (*MessageReceived) GetMsg

func (x *MessageReceived) GetMsg() *messagepb.Message

func (*MessageReceived) ProtoMessage

func (*MessageReceived) ProtoMessage()

func (*MessageReceived) ProtoReflect

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

func (*MessageReceived) Reset

func (x *MessageReceived) Reset()

func (*MessageReceived) String

func (x *MessageReceived) String() string

type SendMessage

type SendMessage struct {
	Msg          *messagepb.Message `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Destinations []string           `protobuf:"bytes,2,rep,name=destinations,proto3" json:"destinations,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessage) Descriptor deprecated

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

Deprecated: Use SendMessage.ProtoReflect.Descriptor instead.

func (*SendMessage) GetDestinations

func (x *SendMessage) GetDestinations() []string

func (*SendMessage) GetMsg

func (x *SendMessage) GetMsg() *messagepb.Message

func (*SendMessage) ProtoMessage

func (*SendMessage) ProtoMessage()

func (*SendMessage) ProtoReflect

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

func (*SendMessage) Reset

func (x *SendMessage) Reset()

func (*SendMessage) String

func (x *SendMessage) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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