protos

package
v2.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use NewUser.ProtoReflect.Descriptor instead.

func (*NewUser) GetContent

func (x *NewUser) GetContent() string

func (*NewUser) ProtoMessage

func (*NewUser) ProtoMessage()

func (*NewUser) ProtoReflect

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

func (*NewUser) Reset

func (x *NewUser) Reset()

func (*NewUser) String

func (x *NewUser) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RPCMsg.ProtoReflect.Descriptor instead.

func (*RPCMsg) GetMsg

func (x *RPCMsg) GetMsg() string

func (*RPCMsg) ProtoMessage

func (*RPCMsg) ProtoMessage()

func (*RPCMsg) ProtoReflect

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

func (*RPCMsg) Reset

func (x *RPCMsg) Reset()

func (*RPCMsg) String

func (x *RPCMsg) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RPCRes.ProtoReflect.Descriptor instead.

func (*RPCRes) GetMsg

func (x *RPCRes) GetMsg() string

func (*RPCRes) ProtoMessage

func (*RPCRes) ProtoMessage()

func (*RPCRes) ProtoReflect

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

func (*RPCRes) Reset

func (x *RPCRes) Reset()

func (*RPCRes) String

func (x *RPCRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode

func (x *Response) GetCode() int32

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetInboundBytes

func (x *Stats) GetInboundBytes() int64

func (*Stats) GetOutboundBytes

func (x *Stats) GetOutboundBytes() int64

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

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

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

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

Jump to

Keyboard shortcuts

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