Documentation ¶
Index ¶
- Variables
- type ClientClosed
- type ForwardBundle
- func (*ForwardBundle) Descriptor() ([]byte, []int)deprecated
- func (x *ForwardBundle) GetBody() *anypb.Any
- func (x *ForwardBundle) GetSender() *network.ClientID
- func (*ForwardBundle) ProtoMessage()
- func (x *ForwardBundle) ProtoReflect() protoreflect.Message
- func (x *ForwardBundle) Reset()
- func (x *ForwardBundle) String() string
- type RequestGatewayAlterRule
- func (*RequestGatewayAlterRule) Descriptor() ([]byte, []int)deprecated
- func (x *RequestGatewayAlterRule) GetRule() int32
- func (x *RequestGatewayAlterRule) GetTarget() *network.ClientID
- func (*RequestGatewayAlterRule) ProtoMessage()
- func (x *RequestGatewayAlterRule) ProtoReflect() protoreflect.Message
- func (x *RequestGatewayAlterRule) Reset()
- func (x *RequestGatewayAlterRule) String() string
- type RequestGatewayCloseClient
- func (*RequestGatewayCloseClient) Descriptor() ([]byte, []int)deprecated
- func (x *RequestGatewayCloseClient) GetTarget() *network.ClientID
- func (*RequestGatewayCloseClient) ProtoMessage()
- func (x *RequestGatewayCloseClient) ProtoReflect() protoreflect.Message
- func (x *RequestGatewayCloseClient) Reset()
- func (x *RequestGatewayCloseClient) String() string
- type RequestGatewayPush
- func (*RequestGatewayPush) Descriptor() ([]byte, []int)deprecated
- func (x *RequestGatewayPush) GetBody() *anypb.Any
- func (x *RequestGatewayPush) GetTarget() *network.ClientID
- func (*RequestGatewayPush) ProtoMessage()
- func (x *RequestGatewayPush) ProtoReflect() protoreflect.Message
- func (x *RequestGatewayPush) Reset()
- func (x *RequestGatewayPush) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_alterrule_proto protoreflect.FileDescriptor
View Source
var File_bundle_proto protoreflect.FileDescriptor
View Source
var File_closing_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClientClosed ¶
type ClientClosed struct { ClientID *network.ClientID `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` // contains filtered or unexported fields }
通知某服务客户端连接已关闭
func (*ClientClosed) Descriptor
deprecated
func (*ClientClosed) Descriptor() ([]byte, []int)
Deprecated: Use ClientClosed.ProtoReflect.Descriptor instead.
func (*ClientClosed) GetClientID ¶
func (x *ClientClosed) GetClientID() *network.ClientID
func (*ClientClosed) ProtoMessage ¶
func (*ClientClosed) ProtoMessage()
func (*ClientClosed) ProtoReflect ¶
func (x *ClientClosed) ProtoReflect() protoreflect.Message
func (*ClientClosed) Reset ¶
func (x *ClientClosed) Reset()
func (*ClientClosed) String ¶
func (x *ClientClosed) String() string
type ForwardBundle ¶
type ForwardBundle struct { Sender *network.ClientID `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // 目标(可为空) Body *anypb.Any `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 具体消息 // contains filtered or unexported fields }
服务->网关->客户端
func (*ForwardBundle) Descriptor
deprecated
func (*ForwardBundle) Descriptor() ([]byte, []int)
Deprecated: Use ForwardBundle.ProtoReflect.Descriptor instead.
func (*ForwardBundle) GetBody ¶
func (x *ForwardBundle) GetBody() *anypb.Any
func (*ForwardBundle) GetSender ¶
func (x *ForwardBundle) GetSender() *network.ClientID
func (*ForwardBundle) ProtoMessage ¶
func (*ForwardBundle) ProtoMessage()
func (*ForwardBundle) ProtoReflect ¶
func (x *ForwardBundle) ProtoReflect() protoreflect.Message
func (*ForwardBundle) Reset ¶
func (x *ForwardBundle) Reset()
func (*ForwardBundle) String ¶
func (x *ForwardBundle) String() string
type RequestGatewayAlterRule ¶
type RequestGatewayAlterRule struct { Target *network.ClientID `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // 目标(可为空) Rule int32 `protobuf:"varint,2,opt,name=Rule,proto3" json:"Rule,omitempty"` // contains filtered or unexported fields }
Service -> post message 修改网关连接者角色等级
func (*RequestGatewayAlterRule) Descriptor
deprecated
func (*RequestGatewayAlterRule) Descriptor() ([]byte, []int)
Deprecated: Use RequestGatewayAlterRule.ProtoReflect.Descriptor instead.
func (*RequestGatewayAlterRule) GetRule ¶
func (x *RequestGatewayAlterRule) GetRule() int32
func (*RequestGatewayAlterRule) GetTarget ¶
func (x *RequestGatewayAlterRule) GetTarget() *network.ClientID
func (*RequestGatewayAlterRule) ProtoMessage ¶
func (*RequestGatewayAlterRule) ProtoMessage()
func (*RequestGatewayAlterRule) ProtoReflect ¶
func (x *RequestGatewayAlterRule) ProtoReflect() protoreflect.Message
func (*RequestGatewayAlterRule) Reset ¶
func (x *RequestGatewayAlterRule) Reset()
func (*RequestGatewayAlterRule) String ¶
func (x *RequestGatewayAlterRule) String() string
type RequestGatewayCloseClient ¶
type RequestGatewayCloseClient struct { Target *network.ClientID `protobuf:"bytes,1,opt,name=Target,proto3" json:"Target,omitempty"` // contains filtered or unexported fields }
请求网关关闭客户端
func (*RequestGatewayCloseClient) Descriptor
deprecated
func (*RequestGatewayCloseClient) Descriptor() ([]byte, []int)
Deprecated: Use RequestGatewayCloseClient.ProtoReflect.Descriptor instead.
func (*RequestGatewayCloseClient) GetTarget ¶
func (x *RequestGatewayCloseClient) GetTarget() *network.ClientID
func (*RequestGatewayCloseClient) ProtoMessage ¶
func (*RequestGatewayCloseClient) ProtoMessage()
func (*RequestGatewayCloseClient) ProtoReflect ¶
func (x *RequestGatewayCloseClient) ProtoReflect() protoreflect.Message
func (*RequestGatewayCloseClient) Reset ¶
func (x *RequestGatewayCloseClient) Reset()
func (*RequestGatewayCloseClient) String ¶
func (x *RequestGatewayCloseClient) String() string
type RequestGatewayPush ¶
type RequestGatewayPush struct { Target *network.ClientID `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // 目标(可为空) Body *anypb.Any `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 具体消息 // contains filtered or unexported fields }
服务->网关->客户端
func (*RequestGatewayPush) Descriptor
deprecated
func (*RequestGatewayPush) Descriptor() ([]byte, []int)
Deprecated: Use RequestGatewayPush.ProtoReflect.Descriptor instead.
func (*RequestGatewayPush) GetBody ¶
func (x *RequestGatewayPush) GetBody() *anypb.Any
func (*RequestGatewayPush) GetTarget ¶
func (x *RequestGatewayPush) GetTarget() *network.ClientID
func (*RequestGatewayPush) ProtoMessage ¶
func (*RequestGatewayPush) ProtoMessage()
func (*RequestGatewayPush) ProtoReflect ¶
func (x *RequestGatewayPush) ProtoReflect() protoreflect.Message
func (*RequestGatewayPush) Reset ¶
func (x *RequestGatewayPush) Reset()
func (*RequestGatewayPush) String ¶
func (x *RequestGatewayPush) String() string
Click to show internal directories.
Click to hide internal directories.