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_cluster_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AllMembers ¶ added in v1.1.9
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
added in
v1.1.9
func (*AllMembers) Descriptor() ([]byte, []int)
Deprecated: Use AllMembers.ProtoReflect.Descriptor instead.
func (*AllMembers) GetMembers ¶ added in v1.1.9
func (x *AllMembers) GetMembers() []string
func (*AllMembers) ProtoMessage ¶ added in v1.1.9
func (*AllMembers) ProtoMessage()
func (*AllMembers) ProtoReflect ¶ added in v1.1.9
func (x *AllMembers) ProtoReflect() protoreflect.Message
func (*AllMembers) Reset ¶ added in v1.1.9
func (x *AllMembers) Reset()
func (*AllMembers) String ¶ added in v1.1.9
func (x *AllMembers) String() string
type JoinResponse ¶ added in v1.1.9
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
added in
v1.1.9
func (*JoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use JoinResponse.ProtoReflect.Descriptor instead.
func (*JoinResponse) GetCode ¶ added in v1.1.9
func (x *JoinResponse) GetCode() int64
func (*JoinResponse) GetResult ¶ added in v1.1.9
func (x *JoinResponse) GetResult() string
func (*JoinResponse) ProtoMessage ¶ added in v1.1.9
func (*JoinResponse) ProtoMessage()
func (*JoinResponse) ProtoReflect ¶ added in v1.1.9
func (x *JoinResponse) ProtoReflect() protoreflect.Message
func (*JoinResponse) Reset ¶ added in v1.1.9
func (x *JoinResponse) Reset()
func (*JoinResponse) String ¶ added in v1.1.9
func (x *JoinResponse) String() string
type NewUser ¶ added in v1.1.9
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
added in
v1.1.9
func (*NewUser) GetContent ¶ added in v1.1.9
func (*NewUser) ProtoMessage ¶ added in v1.1.9
func (*NewUser) ProtoMessage()
func (*NewUser) ProtoReflect ¶ added in v1.1.9
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 ¶ added in v1.1.9
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 ¶ added in v1.1.9
func (x *RPCRes) ProtoReflect() protoreflect.Message
type Response ¶ added in v1.1.9
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
added in
v1.1.9
func (*Response) ProtoMessage ¶ added in v1.1.9
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶ added in v1.1.9
func (x *Response) ProtoReflect() protoreflect.Message
type SendRPCMsg ¶ added in v1.1.9
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
added in
v1.1.9
func (*SendRPCMsg) Descriptor() ([]byte, []int)
Deprecated: Use SendRPCMsg.ProtoReflect.Descriptor instead.
func (*SendRPCMsg) GetMsg ¶ added in v1.1.9
func (x *SendRPCMsg) GetMsg() string
func (*SendRPCMsg) GetRoute ¶ added in v1.1.9
func (x *SendRPCMsg) GetRoute() string
func (*SendRPCMsg) GetServerId ¶ added in v1.1.9
func (x *SendRPCMsg) GetServerId() string
func (*SendRPCMsg) ProtoMessage ¶ added in v1.1.9
func (*SendRPCMsg) ProtoMessage()
func (*SendRPCMsg) ProtoReflect ¶ added in v1.1.9
func (x *SendRPCMsg) ProtoReflect() protoreflect.Message
func (*SendRPCMsg) Reset ¶ added in v1.1.9
func (x *SendRPCMsg) Reset()
func (*SendRPCMsg) String ¶ added in v1.1.9
func (x *SendRPCMsg) String() string
type Stats ¶ added in v1.1.9
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
added in
v1.1.9
func (*Stats) GetInboundBytes ¶ added in v1.1.9
func (*Stats) GetOutboundBytes ¶ added in v1.1.9
func (*Stats) ProtoMessage ¶ added in v1.1.9
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶ added in v1.1.9
func (x *Stats) ProtoReflect() protoreflect.Message
type UserMessage ¶ added in v1.1.9
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
added in
v1.1.9
func (*UserMessage) Descriptor() ([]byte, []int)
Deprecated: Use UserMessage.ProtoReflect.Descriptor instead.
func (*UserMessage) GetContent ¶ added in v1.1.9
func (x *UserMessage) GetContent() string
func (*UserMessage) GetName ¶ added in v1.1.9
func (x *UserMessage) GetName() string
func (*UserMessage) ProtoMessage ¶ added in v1.1.9
func (*UserMessage) ProtoMessage()
func (*UserMessage) ProtoReflect ¶ added in v1.1.9
func (x *UserMessage) ProtoReflect() protoreflect.Message
func (*UserMessage) Reset ¶ added in v1.1.9
func (x *UserMessage) Reset()
func (*UserMessage) String ¶ added in v1.1.9
func (x *UserMessage) String() string
Click to show internal directories.
Click to hide internal directories.