Documentation ¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetMessageReceived() *MessageReceived
- func (x *Event) GetSendMessage() *SendMessage
- func (m *Event) GetType() isEvent_Type
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (*Event) ReflectTypeOptions() []reflect.Type
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_MessageReceived
- type Event_SendMessage
- type Event_Type
- type Event_TypeWrapper
- type MessageReceived
- func (*MessageReceived) Descriptor() ([]byte, []int)deprecated
- func (x *MessageReceived) GetFrom() string
- func (x *MessageReceived) GetMsg() *messagepb.Message
- func (*MessageReceived) ProtoMessage()
- func (x *MessageReceived) ProtoReflect() protoreflect.Message
- func (x *MessageReceived) Reset()
- func (x *MessageReceived) String() string
- type SendMessage
- func (*SendMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessage) GetDestinations() []string
- func (x *SendMessage) GetMsg() *messagepb.Message
- func (*SendMessage) ProtoMessage()
- func (x *SendMessage) ProtoReflect() protoreflect.Message
- func (x *SendMessage) Reset()
- func (x *SendMessage) String() string
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) GetMessageReceived ¶
func (x *Event) GetMessageReceived() *MessageReceived
func (*Event) GetSendMessage ¶
func (x *Event) GetSendMessage() *SendMessage
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) ReflectTypeOptions ¶
type Event_MessageReceived ¶
type Event_MessageReceived struct {
MessageReceived *MessageReceived `protobuf:"bytes,2,opt,name=message_received,json=messageReceived,proto3,oneof"`
}
func (*Event_MessageReceived) Unwrap ¶
func (w *Event_MessageReceived) Unwrap() *MessageReceived
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.