Documentation ¶
Index ¶
- Variables
- type ChannelAction
- func (*ChannelAction) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelAction) GetChannel() string
- func (x *ChannelAction) GetTarget() *Target
- func (x *ChannelAction) GetType() ChannelAction_ChannelActionType
- func (*ChannelAction) ProtoMessage()
- func (x *ChannelAction) ProtoReflect() protoreflect.Message
- func (x *ChannelAction) Reset()
- func (x *ChannelAction) String() string
- type ChannelAction_ChannelActionType
- func (ChannelAction_ChannelActionType) Descriptor() protoreflect.EnumDescriptor
- func (x ChannelAction_ChannelActionType) Enum() *ChannelAction_ChannelActionType
- func (ChannelAction_ChannelActionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChannelAction_ChannelActionType) Number() protoreflect.EnumNumber
- func (x ChannelAction_ChannelActionType) String() string
- func (ChannelAction_ChannelActionType) Type() protoreflect.EnumType
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetBody() []byte
- func (x *Message) GetTarget() *Target
- func (x *Message) GetType() Message_MessageType
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_MessageType
- func (Message_MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x Message_MessageType) Enum() *Message_MessageType
- func (Message_MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_MessageType) Number() protoreflect.EnumNumber
- func (x Message_MessageType) String() string
- func (Message_MessageType) Type() protoreflect.EnumType
- type Target
- func (*Target) Descriptor() ([]byte, []int)deprecated
- func (x *Target) GetChannel() string
- func (x *Target) GetConnection() string
- func (x *Target) GetSession() string
- func (x *Target) GetUser() string
- func (*Target) ProtoMessage()
- func (x *Target) ProtoReflect() protoreflect.Message
- func (x *Target) Reset()
- func (x *Target) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Message_MessageType_name = map[int32]string{ 0: "DISCONNECT", 1: "TEXT", 2: "BINARY", } Message_MessageType_value = map[string]int32{ "DISCONNECT": 0, "TEXT": 1, "BINARY": 2, } )
Enum value maps for Message_MessageType.
View Source
var ( ChannelAction_ChannelActionType_name = map[int32]string{ 0: "SUBSCRIBE", 2: "UNSUBSCRIBE", } ChannelAction_ChannelActionType_value = map[string]int32{ "SUBSCRIBE": 0, "UNSUBSCRIBE": 2, } )
Enum value maps for ChannelAction_ChannelActionType.
View Source
var File_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChannelAction ¶ added in v0.3.0
type ChannelAction struct { Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` Type ChannelAction_ChannelActionType `protobuf:"varint,3,opt,name=type,proto3,enum=ChannelAction_ChannelActionType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ChannelAction) Descriptor
deprecated
added in
v0.3.0
func (*ChannelAction) Descriptor() ([]byte, []int)
Deprecated: Use ChannelAction.ProtoReflect.Descriptor instead.
func (*ChannelAction) GetChannel ¶ added in v0.3.0
func (x *ChannelAction) GetChannel() string
func (*ChannelAction) GetTarget ¶ added in v0.3.0
func (x *ChannelAction) GetTarget() *Target
func (*ChannelAction) GetType ¶ added in v0.3.0
func (x *ChannelAction) GetType() ChannelAction_ChannelActionType
func (*ChannelAction) ProtoMessage ¶ added in v0.3.0
func (*ChannelAction) ProtoMessage()
func (*ChannelAction) ProtoReflect ¶ added in v0.3.0
func (x *ChannelAction) ProtoReflect() protoreflect.Message
func (*ChannelAction) Reset ¶ added in v0.3.0
func (x *ChannelAction) Reset()
func (*ChannelAction) String ¶ added in v0.3.0
func (x *ChannelAction) String() string
type ChannelAction_ChannelActionType ¶ added in v0.3.0
type ChannelAction_ChannelActionType int32
const ( ChannelAction_SUBSCRIBE ChannelAction_ChannelActionType = 0 ChannelAction_UNSUBSCRIBE ChannelAction_ChannelActionType = 2 )
func (ChannelAction_ChannelActionType) Descriptor ¶ added in v0.3.0
func (ChannelAction_ChannelActionType) Descriptor() protoreflect.EnumDescriptor
func (ChannelAction_ChannelActionType) Enum ¶ added in v0.3.0
func (x ChannelAction_ChannelActionType) Enum() *ChannelAction_ChannelActionType
func (ChannelAction_ChannelActionType) EnumDescriptor
deprecated
added in
v0.3.0
func (ChannelAction_ChannelActionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChannelAction_ChannelActionType.Descriptor instead.
func (ChannelAction_ChannelActionType) Number ¶ added in v0.3.0
func (x ChannelAction_ChannelActionType) Number() protoreflect.EnumNumber
func (ChannelAction_ChannelActionType) String ¶ added in v0.3.0
func (x ChannelAction_ChannelActionType) String() string
func (ChannelAction_ChannelActionType) Type ¶ added in v0.3.0
func (ChannelAction_ChannelActionType) Type() protoreflect.EnumType
type Message ¶
type Message struct { Type Message_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=Message_MessageType" json:"type,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` Target *Target `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetType ¶
func (x *Message) GetType() Message_MessageType
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_MessageType ¶
type Message_MessageType int32
const ( Message_DISCONNECT Message_MessageType = 0 // Must match RFC 6455, section 11.8 Message_TEXT Message_MessageType = 1 Message_BINARY Message_MessageType = 2 )
func (Message_MessageType) Descriptor ¶
func (Message_MessageType) Descriptor() protoreflect.EnumDescriptor
func (Message_MessageType) Enum ¶
func (x Message_MessageType) Enum() *Message_MessageType
func (Message_MessageType) EnumDescriptor
deprecated
func (Message_MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_MessageType.Descriptor instead.
func (Message_MessageType) Number ¶
func (x Message_MessageType) Number() protoreflect.EnumNumber
func (Message_MessageType) String ¶
func (x Message_MessageType) String() string
func (Message_MessageType) Type ¶
func (Message_MessageType) Type() protoreflect.EnumType
type Target ¶ added in v0.3.0
type Target struct { Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Session string `protobuf:"bytes,3,opt,name=session,proto3" json:"session,omitempty"` Channel string `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"` // contains filtered or unexported fields }
func (*Target) Descriptor
deprecated
added in
v0.3.0
func (*Target) GetChannel ¶ added in v0.3.0
func (*Target) GetConnection ¶ added in v0.3.0
func (*Target) GetSession ¶ added in v0.3.0
func (*Target) ProtoMessage ¶ added in v0.3.0
func (*Target) ProtoMessage()
func (*Target) ProtoReflect ¶ added in v0.3.0
func (x *Target) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.