Documentation ¶
Index ¶
- Variables
- type AllMembers
- type JoinResponse
- func (*JoinResponse) Descriptor() ([]byte, []int)deprecated
- func (x *JoinResponse) GetCode() int64
- func (x *JoinResponse) GetResult() string
- func (*JoinResponse) ProtoMessage()
- func (x *JoinResponse) ProtoReflect() protoreflect.Message
- func (x *JoinResponse) Reset()
- func (x *JoinResponse) String() string
- type NewUser
- type RPCMsg
- type RPCRes
- type Response
- type SendRPCMsg
- func (*SendRPCMsg) Descriptor() ([]byte, []int)deprecated
- func (x *SendRPCMsg) GetMsg() string
- func (x *SendRPCMsg) GetRoute() string
- func (x *SendRPCMsg) GetServerId() string
- func (*SendRPCMsg) ProtoMessage()
- func (x *SendRPCMsg) ProtoReflect() protoreflect.Message
- func (x *SendRPCMsg) Reset()
- func (x *SendRPCMsg) String() string
- type Stats
- type UserMessage
- func (*UserMessage) Descriptor() ([]byte, []int)deprecated
- func (x *UserMessage) GetContent() string
- func (x *UserMessage) GetName() string
- func (*UserMessage) ProtoMessage()
- func (x *UserMessage) ProtoReflect() protoreflect.Message
- func (x *UserMessage) Reset()
- func (x *UserMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_examples_demo_protos_cluster_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AllMembers ¶
type AllMembers struct { Members []string `protobuf:"bytes,1,rep,name=Members,proto3" json:"Members,omitempty"` // contains filtered or unexported fields }
AllMembers contains all members uid
func (*AllMembers) Descriptor
deprecated
func (*AllMembers) Descriptor() ([]byte, []int)
Deprecated: Use AllMembers.ProtoReflect.Descriptor instead.
func (*AllMembers) GetMembers ¶
func (x *AllMembers) GetMembers() []string
func (*AllMembers) ProtoMessage ¶
func (*AllMembers) ProtoMessage()
func (*AllMembers) ProtoReflect ¶
func (x *AllMembers) ProtoReflect() protoreflect.Message
func (*AllMembers) Reset ¶
func (x *AllMembers) Reset()
func (*AllMembers) String ¶
func (x *AllMembers) String() string
type JoinResponse ¶
type JoinResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
JoinResponse represents the result of joining room
func (*JoinResponse) Descriptor
deprecated
func (*JoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use JoinResponse.ProtoReflect.Descriptor instead.
func (*JoinResponse) GetCode ¶
func (x *JoinResponse) GetCode() int64
func (*JoinResponse) GetResult ¶
func (x *JoinResponse) GetResult() string
func (*JoinResponse) ProtoMessage ¶
func (*JoinResponse) ProtoMessage()
func (*JoinResponse) ProtoReflect ¶
func (x *JoinResponse) ProtoReflect() protoreflect.Message
func (*JoinResponse) Reset ¶
func (x *JoinResponse) Reset()
func (*JoinResponse) String ¶
func (x *JoinResponse) String() string
type NewUser ¶
type NewUser struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
NewUser message will be received when new user join room
func (*NewUser) Descriptor
deprecated
func (*NewUser) GetContent ¶
func (*NewUser) ProtoMessage ¶
func (*NewUser) ProtoMessage()
func (*NewUser) ProtoReflect ¶
func (x *NewUser) ProtoReflect() protoreflect.Message
type RPCMsg ¶
type RPCMsg struct { Msg string `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
RPCMsg message to be sent using rpc
func (*RPCMsg) Descriptor
deprecated
func (*RPCMsg) ProtoMessage ¶
func (*RPCMsg) ProtoMessage()
func (*RPCMsg) ProtoReflect ¶
func (x *RPCMsg) ProtoReflect() protoreflect.Message
type RPCRes ¶
type RPCRes struct { Msg string `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
RPCRes is the rpc response
func (*RPCRes) Descriptor
deprecated
func (*RPCRes) ProtoMessage ¶
func (*RPCRes) ProtoMessage()
func (*RPCRes) ProtoReflect ¶
func (x *RPCRes) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
Response struct
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SendRPCMsg ¶
type SendRPCMsg struct { ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
SendRPCMsg represents a rpc message
func (*SendRPCMsg) Descriptor
deprecated
func (*SendRPCMsg) Descriptor() ([]byte, []int)
Deprecated: Use SendRPCMsg.ProtoReflect.Descriptor instead.
func (*SendRPCMsg) GetMsg ¶
func (x *SendRPCMsg) GetMsg() string
func (*SendRPCMsg) GetRoute ¶
func (x *SendRPCMsg) GetRoute() string
func (*SendRPCMsg) GetServerId ¶
func (x *SendRPCMsg) GetServerId() string
func (*SendRPCMsg) ProtoMessage ¶
func (*SendRPCMsg) ProtoMessage()
func (*SendRPCMsg) ProtoReflect ¶
func (x *SendRPCMsg) ProtoReflect() protoreflect.Message
func (*SendRPCMsg) Reset ¶
func (x *SendRPCMsg) Reset()
func (*SendRPCMsg) String ¶
func (x *SendRPCMsg) String() string
type Stats ¶
type Stats struct { OutboundBytes int64 `protobuf:"varint,1,opt,name=outbound_bytes,json=outboundBytes,proto3" json:"outbound_bytes,omitempty"` InboundBytes int64 `protobuf:"varint,2,opt,name=inbound_bytes,json=inboundBytes,proto3" json:"inbound_bytes,omitempty"` // contains filtered or unexported fields }
Stats exports the room status
func (*Stats) Descriptor
deprecated
func (*Stats) GetInboundBytes ¶
func (*Stats) GetOutboundBytes ¶
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶
func (x *Stats) ProtoReflect() protoreflect.Message
type UserMessage ¶
type UserMessage struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
UserMessage represents a message that user sent
func (*UserMessage) Descriptor
deprecated
func (*UserMessage) Descriptor() ([]byte, []int)
Deprecated: Use UserMessage.ProtoReflect.Descriptor instead.
func (*UserMessage) GetContent ¶
func (x *UserMessage) GetContent() string
func (*UserMessage) GetName ¶
func (x *UserMessage) GetName() string
func (*UserMessage) ProtoMessage ¶
func (*UserMessage) ProtoMessage()
func (*UserMessage) ProtoReflect ¶
func (x *UserMessage) ProtoReflect() protoreflect.Message
func (*UserMessage) Reset ¶
func (x *UserMessage) Reset()
func (*UserMessage) String ¶
func (x *UserMessage) String() string
Click to show internal directories.
Click to hide internal directories.