Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterLogicServer(s grpc.ServiceRegistrar, srv LogicServer)
- type Backoff
- func (*Backoff) Descriptor() ([]byte, []int)deprecated
- func (x *Backoff) GetBaseDelay() int32
- func (x *Backoff) GetFactor() float32
- func (x *Backoff) GetJitter() float32
- func (x *Backoff) GetMaxDelay() int32
- func (*Backoff) ProtoMessage()
- func (x *Backoff) ProtoReflect() protoreflect.Message
- func (x *Backoff) Reset()
- func (x *Backoff) String() string
- type ConnectReply
- func (*ConnectReply) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectReply) GetAccepts() []int32
- func (x *ConnectReply) GetHeartbeat() int64
- func (x *ConnectReply) GetKey() string
- func (x *ConnectReply) GetMemberId() uint64
- func (x *ConnectReply) GetRoomId() string
- func (*ConnectReply) ProtoMessage()
- func (x *ConnectReply) ProtoReflect() protoreflect.Message
- func (x *ConnectReply) Reset()
- func (x *ConnectReply) String() string
- type ConnectReq
- func (*ConnectReq) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectReq) GetCookie() string
- func (x *ConnectReq) GetServer() string
- func (x *ConnectReq) GetToken() []byte
- func (*ConnectReq) ProtoMessage()
- func (x *ConnectReq) ProtoReflect() protoreflect.Message
- func (x *ConnectReq) Reset()
- func (x *ConnectReq) String() string
- type DisconnectReply
- type DisconnectReq
- func (*DisconnectReq) Descriptor() ([]byte, []int)deprecated
- func (x *DisconnectReq) GetKey() string
- func (x *DisconnectReq) GetMemberId() uint64
- func (x *DisconnectReq) GetServer() string
- func (*DisconnectReq) ProtoMessage()
- func (x *DisconnectReq) ProtoReflect() protoreflect.Message
- func (x *DisconnectReq) Reset()
- func (x *DisconnectReq) String() string
- type HeartbeatReply
- type HeartbeatReq
- func (*HeartbeatReq) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatReq) GetKey() string
- func (x *HeartbeatReq) GetMemberId() uint64
- func (x *HeartbeatReq) GetServer() string
- func (*HeartbeatReq) ProtoMessage()
- func (x *HeartbeatReq) ProtoReflect() protoreflect.Message
- func (x *HeartbeatReq) Reset()
- func (x *HeartbeatReq) String() string
- type LogicClient
- type LogicServer
- type NodesReply
- func (*NodesReply) Descriptor() ([]byte, []int)deprecated
- func (x *NodesReply) GetBackoff() *Backoff
- func (x *NodesReply) GetDomain() string
- func (x *NodesReply) GetHeartbeat() int32
- func (x *NodesReply) GetHeartbeatMax() int32
- func (x *NodesReply) GetNodes() []string
- func (x *NodesReply) GetTcpPort() int32
- func (x *NodesReply) GetWsPort() int32
- func (x *NodesReply) GetWssPort() int32
- func (*NodesReply) ProtoMessage()
- func (x *NodesReply) ProtoReflect() protoreflect.Message
- func (x *NodesReply) Reset()
- func (x *NodesReply) String() string
- type NodesReq
- type OnlineReply
- type OnlineReq
- func (*OnlineReq) Descriptor() ([]byte, []int)deprecated
- func (x *OnlineReq) GetRoomCount() map[string]int32
- func (x *OnlineReq) GetServer() string
- func (*OnlineReq) ProtoMessage()
- func (x *OnlineReq) ProtoReflect() protoreflect.Message
- func (x *OnlineReq) Reset()
- func (x *OnlineReq) String() string
- type PushAllReply
- type PushAllReq
- func (*PushAllReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushAllReq) GetMsg() []byte
- func (x *PushAllReq) GetOp() int32
- func (x *PushAllReq) GetSpeed() int32
- func (*PushAllReq) ProtoMessage()
- func (x *PushAllReq) ProtoReflect() protoreflect.Message
- func (x *PushAllReq) Reset()
- func (x *PushAllReq) String() string
- type PushKeysReply
- type PushKeysReq
- func (*PushKeysReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushKeysReq) GetKeys() []string
- func (x *PushKeysReq) GetMsg() []byte
- func (x *PushKeysReq) GetOp() int32
- func (*PushKeysReq) ProtoMessage()
- func (x *PushKeysReq) ProtoReflect() protoreflect.Message
- func (x *PushKeysReq) Reset()
- func (x *PushKeysReq) String() string
- type PushMidsReply
- type PushMidsReq
- func (*PushMidsReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushMidsReq) GetMids() []int64
- func (x *PushMidsReq) GetMsg() []byte
- func (x *PushMidsReq) GetOp() int32
- func (*PushMidsReq) ProtoMessage()
- func (x *PushMidsReq) ProtoReflect() protoreflect.Message
- func (x *PushMidsReq) Reset()
- func (x *PushMidsReq) String() string
- type PushMsg
- func (*PushMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PushMsg) GetKeys() []string
- func (x *PushMsg) GetMsg() []byte
- func (x *PushMsg) GetOperation() int32
- func (x *PushMsg) GetRoom() string
- func (x *PushMsg) GetServer() string
- func (x *PushMsg) GetSpeed() int32
- func (x *PushMsg) GetType() PushMsg_Type
- func (*PushMsg) ProtoMessage()
- func (x *PushMsg) ProtoReflect() protoreflect.Message
- func (x *PushMsg) Reset()
- func (x *PushMsg) String() string
- type PushMsg_Type
- func (PushMsg_Type) Descriptor() protoreflect.EnumDescriptor
- func (x PushMsg_Type) Enum() *PushMsg_Type
- func (PushMsg_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x PushMsg_Type) Number() protoreflect.EnumNumber
- func (x PushMsg_Type) String() string
- func (PushMsg_Type) Type() protoreflect.EnumType
- type PushReply
- type PushReq
- type PushRoomReply
- type PushRoomReq
- func (*PushRoomReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushRoomReq) GetMsg() []byte
- func (x *PushRoomReq) GetOp() int32
- func (x *PushRoomReq) GetRoom() string
- func (x *PushRoomReq) GetType() string
- func (*PushRoomReq) ProtoMessage()
- func (x *PushRoomReq) ProtoReflect() protoreflect.Message
- func (x *PushRoomReq) Reset()
- func (x *PushRoomReq) String() string
- type ReceiveReply
- type ReceiveReq
- func (*ReceiveReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiveReq) GetMemberId() uint64
- func (x *ReceiveReq) GetMessage() *protocol.Message
- func (*ReceiveReq) ProtoMessage()
- func (x *ReceiveReq) ProtoReflect() protoreflect.Message
- func (x *ReceiveReq) Reset()
- func (x *ReceiveReq) String() string
- type UnimplementedLogicServer
- func (UnimplementedLogicServer) Connect(context.Context, *ConnectReq) (*ConnectReply, error)
- func (UnimplementedLogicServer) Disconnect(context.Context, *DisconnectReq) (*DisconnectReply, error)
- func (UnimplementedLogicServer) Heartbeat(context.Context, *HeartbeatReq) (*HeartbeatReply, error)
- func (UnimplementedLogicServer) Nodes(context.Context, *NodesReq) (*NodesReply, error)
- func (UnimplementedLogicServer) Push(context.Context, *PushReq) (*PushReply, error)
- func (UnimplementedLogicServer) PushAll(context.Context, *PushAllReq) (*PushAllReply, error)
- func (UnimplementedLogicServer) PushKeys(context.Context, *PushKeysReq) (*PushKeysReply, error)
- func (UnimplementedLogicServer) PushMids(context.Context, *PushMidsReq) (*PushMidsReply, error)
- func (UnimplementedLogicServer) PushRoom(context.Context, *PushRoomReq) (*PushRoomReply, error)
- func (UnimplementedLogicServer) Receive(context.Context, *ReceiveReq) (*ReceiveReply, error)
- func (UnimplementedLogicServer) RenewOnline(context.Context, *OnlineReq) (*OnlineReply, error)
- type UnsafeLogicServer
Constants ¶
const ( Logic_Connect_FullMethodName = "/api.logic.Logic/Connect" Logic_Disconnect_FullMethodName = "/api.logic.Logic/Disconnect" Logic_Heartbeat_FullMethodName = "/api.logic.Logic/Heartbeat" Logic_RenewOnline_FullMethodName = "/api.logic.Logic/RenewOnline" Logic_Receive_FullMethodName = "/api.logic.Logic/Receive" Logic_Nodes_FullMethodName = "/api.logic.Logic/Nodes" Logic_Push_FullMethodName = "/api.logic.Logic/Push" Logic_PushKeys_FullMethodName = "/api.logic.Logic/PushKeys" Logic_PushMids_FullMethodName = "/api.logic.Logic/PushMids" Logic_PushRoom_FullMethodName = "/api.logic.Logic/PushRoom" Logic_PushAll_FullMethodName = "/api.logic.Logic/PushAll" )
Variables ¶
var ( PushMsg_Type_name = map[int32]string{ 0: "PUSH", 1: "ROOM", 2: "BROADCAST", } PushMsg_Type_value = map[string]int32{ "PUSH": 0, "ROOM": 1, "BROADCAST": 2, } )
Enum value maps for PushMsg_Type.
var File_api_logic_logic_proto protoreflect.FileDescriptor
var Logic_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.logic.Logic", HandlerType: (*LogicServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Connect", Handler: _Logic_Connect_Handler, }, { MethodName: "Disconnect", Handler: _Logic_Disconnect_Handler, }, { MethodName: "Heartbeat", Handler: _Logic_Heartbeat_Handler, }, { MethodName: "RenewOnline", Handler: _Logic_RenewOnline_Handler, }, { MethodName: "Receive", Handler: _Logic_Receive_Handler, }, { MethodName: "Nodes", Handler: _Logic_Nodes_Handler, }, { MethodName: "Push", Handler: _Logic_Push_Handler, }, { MethodName: "PushKeys", Handler: _Logic_PushKeys_Handler, }, { MethodName: "PushMids", Handler: _Logic_PushMids_Handler, }, { MethodName: "PushRoom", Handler: _Logic_PushRoom_Handler, }, { MethodName: "PushAll", Handler: _Logic_PushAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/logic/logic.proto", }
Logic_ServiceDesc is the grpc.ServiceDesc for Logic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogicServer ¶
func RegisterLogicServer(s grpc.ServiceRegistrar, srv LogicServer)
Types ¶
type Backoff ¶
type Backoff struct { MaxDelay int32 `protobuf:"varint,1,opt,name=max_delay,json=maxDelay,proto3" json:"max_delay,omitempty"` BaseDelay int32 `protobuf:"varint,2,opt,name=base_delay,json=baseDelay,proto3" json:"base_delay,omitempty"` Factor float32 `protobuf:"fixed32,3,opt,name=factor,proto3" json:"factor,omitempty"` Jitter float32 `protobuf:"fixed32,4,opt,name=jitter,proto3" json:"jitter,omitempty"` // contains filtered or unexported fields }
func (*Backoff) Descriptor
deprecated
func (*Backoff) GetBaseDelay ¶
func (*Backoff) GetMaxDelay ¶
func (*Backoff) ProtoMessage ¶
func (*Backoff) ProtoMessage()
func (*Backoff) ProtoReflect ¶
func (x *Backoff) ProtoReflect() protoreflect.Message
type ConnectReply ¶
type ConnectReply struct { MemberId uint64 `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` RoomId string `protobuf:"bytes,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` Accepts []int32 `protobuf:"varint,4,rep,packed,name=accepts,proto3" json:"accepts,omitempty"` Heartbeat int64 `protobuf:"varint,5,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"` // contains filtered or unexported fields }
func (*ConnectReply) Descriptor
deprecated
func (*ConnectReply) Descriptor() ([]byte, []int)
Deprecated: Use ConnectReply.ProtoReflect.Descriptor instead.
func (*ConnectReply) GetAccepts ¶
func (x *ConnectReply) GetAccepts() []int32
func (*ConnectReply) GetHeartbeat ¶
func (x *ConnectReply) GetHeartbeat() int64
func (*ConnectReply) GetKey ¶
func (x *ConnectReply) GetKey() string
func (*ConnectReply) GetMemberId ¶
func (x *ConnectReply) GetMemberId() uint64
func (*ConnectReply) GetRoomId ¶
func (x *ConnectReply) GetRoomId() string
func (*ConnectReply) ProtoMessage ¶
func (*ConnectReply) ProtoMessage()
func (*ConnectReply) ProtoReflect ¶
func (x *ConnectReply) ProtoReflect() protoreflect.Message
func (*ConnectReply) Reset ¶
func (x *ConnectReply) Reset()
func (*ConnectReply) String ¶
func (x *ConnectReply) String() string
type ConnectReq ¶
type ConnectReq struct { Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Cookie string `protobuf:"bytes,2,opt,name=cookie,proto3" json:"cookie,omitempty"` Token []byte `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ConnectReq) Descriptor
deprecated
func (*ConnectReq) Descriptor() ([]byte, []int)
Deprecated: Use ConnectReq.ProtoReflect.Descriptor instead.
func (*ConnectReq) GetCookie ¶
func (x *ConnectReq) GetCookie() string
func (*ConnectReq) GetServer ¶
func (x *ConnectReq) GetServer() string
func (*ConnectReq) GetToken ¶
func (x *ConnectReq) GetToken() []byte
func (*ConnectReq) ProtoMessage ¶
func (*ConnectReq) ProtoMessage()
func (*ConnectReq) ProtoReflect ¶
func (x *ConnectReq) ProtoReflect() protoreflect.Message
func (*ConnectReq) Reset ¶
func (x *ConnectReq) Reset()
func (*ConnectReq) String ¶
func (x *ConnectReq) String() string
type DisconnectReply ¶
type DisconnectReply struct { Has bool `protobuf:"varint,1,opt,name=has,proto3" json:"has,omitempty"` // contains filtered or unexported fields }
func (*DisconnectReply) Descriptor
deprecated
func (*DisconnectReply) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectReply.ProtoReflect.Descriptor instead.
func (*DisconnectReply) GetHas ¶
func (x *DisconnectReply) GetHas() bool
func (*DisconnectReply) ProtoMessage ¶
func (*DisconnectReply) ProtoMessage()
func (*DisconnectReply) ProtoReflect ¶
func (x *DisconnectReply) ProtoReflect() protoreflect.Message
func (*DisconnectReply) Reset ¶
func (x *DisconnectReply) Reset()
func (*DisconnectReply) String ¶
func (x *DisconnectReply) String() string
type DisconnectReq ¶
type DisconnectReq struct { MemberId uint64 `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Server string `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*DisconnectReq) Descriptor
deprecated
func (*DisconnectReq) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectReq.ProtoReflect.Descriptor instead.
func (*DisconnectReq) GetKey ¶
func (x *DisconnectReq) GetKey() string
func (*DisconnectReq) GetMemberId ¶
func (x *DisconnectReq) GetMemberId() uint64
func (*DisconnectReq) GetServer ¶
func (x *DisconnectReq) GetServer() string
func (*DisconnectReq) ProtoMessage ¶
func (*DisconnectReq) ProtoMessage()
func (*DisconnectReq) ProtoReflect ¶
func (x *DisconnectReq) ProtoReflect() protoreflect.Message
func (*DisconnectReq) Reset ¶
func (x *DisconnectReq) Reset()
func (*DisconnectReq) String ¶
func (x *DisconnectReq) String() string
type HeartbeatReply ¶
type HeartbeatReply struct {
// contains filtered or unexported fields
}
func (*HeartbeatReply) Descriptor
deprecated
func (*HeartbeatReply) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatReply.ProtoReflect.Descriptor instead.
func (*HeartbeatReply) ProtoMessage ¶
func (*HeartbeatReply) ProtoMessage()
func (*HeartbeatReply) ProtoReflect ¶
func (x *HeartbeatReply) ProtoReflect() protoreflect.Message
func (*HeartbeatReply) Reset ¶
func (x *HeartbeatReply) Reset()
func (*HeartbeatReply) String ¶
func (x *HeartbeatReply) String() string
type HeartbeatReq ¶
type HeartbeatReq struct { MemberId uint64 `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Server string `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*HeartbeatReq) Descriptor
deprecated
func (*HeartbeatReq) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatReq.ProtoReflect.Descriptor instead.
func (*HeartbeatReq) GetKey ¶
func (x *HeartbeatReq) GetKey() string
func (*HeartbeatReq) GetMemberId ¶
func (x *HeartbeatReq) GetMemberId() uint64
func (*HeartbeatReq) GetServer ¶
func (x *HeartbeatReq) GetServer() string
func (*HeartbeatReq) ProtoMessage ¶
func (*HeartbeatReq) ProtoMessage()
func (*HeartbeatReq) ProtoReflect ¶
func (x *HeartbeatReq) ProtoReflect() protoreflect.Message
func (*HeartbeatReq) Reset ¶
func (x *HeartbeatReq) Reset()
func (*HeartbeatReq) String ¶
func (x *HeartbeatReq) String() string
type LogicClient ¶
type LogicClient interface { Connect(ctx context.Context, in *ConnectReq, opts ...grpc.CallOption) (*ConnectReply, error) Disconnect(ctx context.Context, in *DisconnectReq, opts ...grpc.CallOption) (*DisconnectReply, error) Heartbeat(ctx context.Context, in *HeartbeatReq, opts ...grpc.CallOption) (*HeartbeatReply, error) RenewOnline(ctx context.Context, in *OnlineReq, opts ...grpc.CallOption) (*OnlineReply, error) Receive(ctx context.Context, in *ReceiveReq, opts ...grpc.CallOption) (*ReceiveReply, error) Nodes(ctx context.Context, in *NodesReq, opts ...grpc.CallOption) (*NodesReply, error) Push(ctx context.Context, in *PushReq, opts ...grpc.CallOption) (*PushReply, error) PushKeys(ctx context.Context, in *PushKeysReq, opts ...grpc.CallOption) (*PushKeysReply, error) PushMids(ctx context.Context, in *PushMidsReq, opts ...grpc.CallOption) (*PushMidsReply, error) PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*PushRoomReply, error) PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*PushAllReply, error) }
LogicClient is the client API for Logic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLogicClient ¶
func NewLogicClient(cc grpc.ClientConnInterface) LogicClient
type LogicServer ¶
type LogicServer interface { Connect(context.Context, *ConnectReq) (*ConnectReply, error) Disconnect(context.Context, *DisconnectReq) (*DisconnectReply, error) Heartbeat(context.Context, *HeartbeatReq) (*HeartbeatReply, error) RenewOnline(context.Context, *OnlineReq) (*OnlineReply, error) Receive(context.Context, *ReceiveReq) (*ReceiveReply, error) Nodes(context.Context, *NodesReq) (*NodesReply, error) Push(context.Context, *PushReq) (*PushReply, error) PushKeys(context.Context, *PushKeysReq) (*PushKeysReply, error) PushMids(context.Context, *PushMidsReq) (*PushMidsReply, error) PushRoom(context.Context, *PushRoomReq) (*PushRoomReply, error) PushAll(context.Context, *PushAllReq) (*PushAllReply, error) // contains filtered or unexported methods }
LogicServer is the server API for Logic service. All implementations must embed UnimplementedLogicServer for forward compatibility
type NodesReply ¶
type NodesReply struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` TcpPort int32 `protobuf:"varint,2,opt,name=tcp_port,json=tcpPort,proto3" json:"tcp_port,omitempty"` WsPort int32 `protobuf:"varint,3,opt,name=ws_port,json=wsPort,proto3" json:"ws_port,omitempty"` WssPort int32 `protobuf:"varint,4,opt,name=wss_port,json=wssPort,proto3" json:"wss_port,omitempty"` Heartbeat int32 `protobuf:"varint,5,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"` Nodes []string `protobuf:"bytes,6,rep,name=nodes,proto3" json:"nodes,omitempty"` Backoff *Backoff `protobuf:"bytes,7,opt,name=backoff,proto3" json:"backoff,omitempty"` HeartbeatMax int32 `protobuf:"varint,8,opt,name=heartbeat_max,json=heartbeatMax,proto3" json:"heartbeat_max,omitempty"` // contains filtered or unexported fields }
func (*NodesReply) Descriptor
deprecated
func (*NodesReply) Descriptor() ([]byte, []int)
Deprecated: Use NodesReply.ProtoReflect.Descriptor instead.
func (*NodesReply) GetBackoff ¶
func (x *NodesReply) GetBackoff() *Backoff
func (*NodesReply) GetDomain ¶
func (x *NodesReply) GetDomain() string
func (*NodesReply) GetHeartbeat ¶
func (x *NodesReply) GetHeartbeat() int32
func (*NodesReply) GetHeartbeatMax ¶
func (x *NodesReply) GetHeartbeatMax() int32
func (*NodesReply) GetNodes ¶
func (x *NodesReply) GetNodes() []string
func (*NodesReply) GetTcpPort ¶
func (x *NodesReply) GetTcpPort() int32
func (*NodesReply) GetWsPort ¶
func (x *NodesReply) GetWsPort() int32
func (*NodesReply) GetWssPort ¶
func (x *NodesReply) GetWssPort() int32
func (*NodesReply) ProtoMessage ¶
func (*NodesReply) ProtoMessage()
func (*NodesReply) ProtoReflect ¶
func (x *NodesReply) ProtoReflect() protoreflect.Message
func (*NodesReply) Reset ¶
func (x *NodesReply) Reset()
func (*NodesReply) String ¶
func (x *NodesReply) String() string
type NodesReq ¶
type NodesReq struct { Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` ClientIp string `protobuf:"bytes,2,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"` // contains filtered or unexported fields }
func (*NodesReq) Descriptor
deprecated
func (*NodesReq) GetClientIp ¶
func (*NodesReq) GetPlatform ¶
func (*NodesReq) ProtoMessage ¶
func (*NodesReq) ProtoMessage()
func (*NodesReq) ProtoReflect ¶
func (x *NodesReq) ProtoReflect() protoreflect.Message
type OnlineReply ¶
type OnlineReply struct { AllRoomCount map[string]int32 `` /* 188-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OnlineReply) Descriptor
deprecated
func (*OnlineReply) Descriptor() ([]byte, []int)
Deprecated: Use OnlineReply.ProtoReflect.Descriptor instead.
func (*OnlineReply) GetAllRoomCount ¶
func (x *OnlineReply) GetAllRoomCount() map[string]int32
func (*OnlineReply) ProtoMessage ¶
func (*OnlineReply) ProtoMessage()
func (*OnlineReply) ProtoReflect ¶
func (x *OnlineReply) ProtoReflect() protoreflect.Message
func (*OnlineReply) Reset ¶
func (x *OnlineReply) Reset()
func (*OnlineReply) String ¶
func (x *OnlineReply) String() string
type OnlineReq ¶
type OnlineReq struct { Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` RoomCount map[string]int32 `` /* 177-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OnlineReq) Descriptor
deprecated
func (*OnlineReq) GetRoomCount ¶
func (*OnlineReq) ProtoMessage ¶
func (*OnlineReq) ProtoMessage()
func (*OnlineReq) ProtoReflect ¶
func (x *OnlineReq) ProtoReflect() protoreflect.Message
type PushAllReply ¶
type PushAllReply struct {
// contains filtered or unexported fields
}
func (*PushAllReply) Descriptor
deprecated
func (*PushAllReply) Descriptor() ([]byte, []int)
Deprecated: Use PushAllReply.ProtoReflect.Descriptor instead.
func (*PushAllReply) ProtoMessage ¶
func (*PushAllReply) ProtoMessage()
func (*PushAllReply) ProtoReflect ¶
func (x *PushAllReply) ProtoReflect() protoreflect.Message
func (*PushAllReply) Reset ¶
func (x *PushAllReply) Reset()
func (*PushAllReply) String ¶
func (x *PushAllReply) String() string
type PushAllReq ¶
type PushAllReq struct { Op int32 `protobuf:"varint,1,opt,name=op,proto3" json:"op,omitempty"` Speed int32 `protobuf:"varint,2,opt,name=speed,proto3" json:"speed,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PushAllReq) Descriptor
deprecated
func (*PushAllReq) Descriptor() ([]byte, []int)
Deprecated: Use PushAllReq.ProtoReflect.Descriptor instead.
func (*PushAllReq) GetMsg ¶
func (x *PushAllReq) GetMsg() []byte
func (*PushAllReq) GetOp ¶
func (x *PushAllReq) GetOp() int32
func (*PushAllReq) GetSpeed ¶
func (x *PushAllReq) GetSpeed() int32
func (*PushAllReq) ProtoMessage ¶
func (*PushAllReq) ProtoMessage()
func (*PushAllReq) ProtoReflect ¶
func (x *PushAllReq) ProtoReflect() protoreflect.Message
func (*PushAllReq) Reset ¶
func (x *PushAllReq) Reset()
func (*PushAllReq) String ¶
func (x *PushAllReq) String() string
type PushKeysReply ¶
type PushKeysReply struct {
// contains filtered or unexported fields
}
func (*PushKeysReply) Descriptor
deprecated
func (*PushKeysReply) Descriptor() ([]byte, []int)
Deprecated: Use PushKeysReply.ProtoReflect.Descriptor instead.
func (*PushKeysReply) ProtoMessage ¶
func (*PushKeysReply) ProtoMessage()
func (*PushKeysReply) ProtoReflect ¶
func (x *PushKeysReply) ProtoReflect() protoreflect.Message
func (*PushKeysReply) Reset ¶
func (x *PushKeysReply) Reset()
func (*PushKeysReply) String ¶
func (x *PushKeysReply) String() string
type PushKeysReq ¶
type PushKeysReq struct { Op int32 `protobuf:"varint,1,opt,name=op,proto3" json:"op,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PushKeysReq) Descriptor
deprecated
func (*PushKeysReq) Descriptor() ([]byte, []int)
Deprecated: Use PushKeysReq.ProtoReflect.Descriptor instead.
func (*PushKeysReq) GetKeys ¶
func (x *PushKeysReq) GetKeys() []string
func (*PushKeysReq) GetMsg ¶
func (x *PushKeysReq) GetMsg() []byte
func (*PushKeysReq) GetOp ¶
func (x *PushKeysReq) GetOp() int32
func (*PushKeysReq) ProtoMessage ¶
func (*PushKeysReq) ProtoMessage()
func (*PushKeysReq) ProtoReflect ¶
func (x *PushKeysReq) ProtoReflect() protoreflect.Message
func (*PushKeysReq) Reset ¶
func (x *PushKeysReq) Reset()
func (*PushKeysReq) String ¶
func (x *PushKeysReq) String() string
type PushMidsReply ¶
type PushMidsReply struct {
// contains filtered or unexported fields
}
func (*PushMidsReply) Descriptor
deprecated
func (*PushMidsReply) Descriptor() ([]byte, []int)
Deprecated: Use PushMidsReply.ProtoReflect.Descriptor instead.
func (*PushMidsReply) ProtoMessage ¶
func (*PushMidsReply) ProtoMessage()
func (*PushMidsReply) ProtoReflect ¶
func (x *PushMidsReply) ProtoReflect() protoreflect.Message
func (*PushMidsReply) Reset ¶
func (x *PushMidsReply) Reset()
func (*PushMidsReply) String ¶
func (x *PushMidsReply) String() string
type PushMidsReq ¶
type PushMidsReq struct { Op int32 `protobuf:"varint,1,opt,name=op,proto3" json:"op,omitempty"` Mids []int64 `protobuf:"varint,2,rep,packed,name=mids,proto3" json:"mids,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PushMidsReq) Descriptor
deprecated
func (*PushMidsReq) Descriptor() ([]byte, []int)
Deprecated: Use PushMidsReq.ProtoReflect.Descriptor instead.
func (*PushMidsReq) GetMids ¶
func (x *PushMidsReq) GetMids() []int64
func (*PushMidsReq) GetMsg ¶
func (x *PushMidsReq) GetMsg() []byte
func (*PushMidsReq) GetOp ¶
func (x *PushMidsReq) GetOp() int32
func (*PushMidsReq) ProtoMessage ¶
func (*PushMidsReq) ProtoMessage()
func (*PushMidsReq) ProtoReflect ¶
func (x *PushMidsReq) ProtoReflect() protoreflect.Message
func (*PushMidsReq) Reset ¶
func (x *PushMidsReq) Reset()
func (*PushMidsReq) String ¶
func (x *PushMidsReq) String() string
type PushMsg ¶
type PushMsg struct { Type PushMsg_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.logic.PushMsg_Type" json:"type,omitempty"` Operation int32 `protobuf:"varint,2,opt,name=operation,proto3" json:"operation,omitempty"` Speed int32 `protobuf:"varint,3,opt,name=speed,proto3" json:"speed,omitempty"` Server string `protobuf:"bytes,4,opt,name=server,proto3" json:"server,omitempty"` Room string `protobuf:"bytes,5,opt,name=room,proto3" json:"room,omitempty"` Keys []string `protobuf:"bytes,6,rep,name=keys,proto3" json:"keys,omitempty"` Msg []byte `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PushMsg) Descriptor
deprecated
func (*PushMsg) GetOperation ¶
func (*PushMsg) GetType ¶
func (x *PushMsg) GetType() PushMsg_Type
func (*PushMsg) ProtoMessage ¶
func (*PushMsg) ProtoMessage()
func (*PushMsg) ProtoReflect ¶
func (x *PushMsg) ProtoReflect() protoreflect.Message
type PushMsg_Type ¶
type PushMsg_Type int32
const ( PushMsg_PUSH PushMsg_Type = 0 PushMsg_ROOM PushMsg_Type = 1 PushMsg_BROADCAST PushMsg_Type = 2 )
func (PushMsg_Type) Descriptor ¶
func (PushMsg_Type) Descriptor() protoreflect.EnumDescriptor
func (PushMsg_Type) Enum ¶
func (x PushMsg_Type) Enum() *PushMsg_Type
func (PushMsg_Type) EnumDescriptor
deprecated
func (PushMsg_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use PushMsg_Type.Descriptor instead.
func (PushMsg_Type) Number ¶
func (x PushMsg_Type) Number() protoreflect.EnumNumber
func (PushMsg_Type) String ¶
func (x PushMsg_Type) String() string
func (PushMsg_Type) Type ¶
func (PushMsg_Type) Type() protoreflect.EnumType
type PushReply ¶
type PushReply struct { BaseReply *protocol.BaseReply `protobuf:"bytes,1,opt,name=base_reply,json=baseReply,proto3" json:"base_reply,omitempty"` // contains filtered or unexported fields }
func (*PushReply) Descriptor
deprecated
func (*PushReply) GetBaseReply ¶
func (*PushReply) ProtoMessage ¶
func (*PushReply) ProtoMessage()
func (*PushReply) ProtoReflect ¶
func (x *PushReply) ProtoReflect() protoreflect.Message
type PushReq ¶
type PushReq struct { Receivers []uint64 `protobuf:"varint,1,rep,packed,name=receivers,proto3" json:"receivers,omitempty"` MessageData []byte `protobuf:"bytes,2,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"` //业务消息 // contains filtered or unexported fields }
func (*PushReq) Descriptor
deprecated
func (*PushReq) GetMessageData ¶
func (*PushReq) GetReceivers ¶
func (*PushReq) ProtoMessage ¶
func (*PushReq) ProtoMessage()
func (*PushReq) ProtoReflect ¶
func (x *PushReq) ProtoReflect() protoreflect.Message
type PushRoomReply ¶
type PushRoomReply struct {
// contains filtered or unexported fields
}
func (*PushRoomReply) Descriptor
deprecated
func (*PushRoomReply) Descriptor() ([]byte, []int)
Deprecated: Use PushRoomReply.ProtoReflect.Descriptor instead.
func (*PushRoomReply) ProtoMessage ¶
func (*PushRoomReply) ProtoMessage()
func (*PushRoomReply) ProtoReflect ¶
func (x *PushRoomReply) ProtoReflect() protoreflect.Message
func (*PushRoomReply) Reset ¶
func (x *PushRoomReply) Reset()
func (*PushRoomReply) String ¶
func (x *PushRoomReply) String() string
type PushRoomReq ¶
type PushRoomReq struct { Op int32 `protobuf:"varint,1,opt,name=op,proto3" json:"op,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Room string `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PushRoomReq) Descriptor
deprecated
func (*PushRoomReq) Descriptor() ([]byte, []int)
Deprecated: Use PushRoomReq.ProtoReflect.Descriptor instead.
func (*PushRoomReq) GetMsg ¶
func (x *PushRoomReq) GetMsg() []byte
func (*PushRoomReq) GetOp ¶
func (x *PushRoomReq) GetOp() int32
func (*PushRoomReq) GetRoom ¶
func (x *PushRoomReq) GetRoom() string
func (*PushRoomReq) GetType ¶
func (x *PushRoomReq) GetType() string
func (*PushRoomReq) ProtoMessage ¶
func (*PushRoomReq) ProtoMessage()
func (*PushRoomReq) ProtoReflect ¶
func (x *PushRoomReq) ProtoReflect() protoreflect.Message
func (*PushRoomReq) Reset ¶
func (x *PushRoomReq) Reset()
func (*PushRoomReq) String ¶
func (x *PushRoomReq) String() string
type ReceiveReply ¶
type ReceiveReply struct { Message *protocol.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ReceiveReply) Descriptor
deprecated
func (*ReceiveReply) Descriptor() ([]byte, []int)
Deprecated: Use ReceiveReply.ProtoReflect.Descriptor instead.
func (*ReceiveReply) GetMessage ¶
func (x *ReceiveReply) GetMessage() *protocol.Message
func (*ReceiveReply) ProtoMessage ¶
func (*ReceiveReply) ProtoMessage()
func (*ReceiveReply) ProtoReflect ¶
func (x *ReceiveReply) ProtoReflect() protoreflect.Message
func (*ReceiveReply) Reset ¶
func (x *ReceiveReply) Reset()
func (*ReceiveReply) String ¶
func (x *ReceiveReply) String() string
type ReceiveReq ¶
type ReceiveReq struct { MemberId uint64 `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` Message *protocol.Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ReceiveReq) Descriptor
deprecated
func (*ReceiveReq) Descriptor() ([]byte, []int)
Deprecated: Use ReceiveReq.ProtoReflect.Descriptor instead.
func (*ReceiveReq) GetMemberId ¶
func (x *ReceiveReq) GetMemberId() uint64
func (*ReceiveReq) GetMessage ¶
func (x *ReceiveReq) GetMessage() *protocol.Message
func (*ReceiveReq) ProtoMessage ¶
func (*ReceiveReq) ProtoMessage()
func (*ReceiveReq) ProtoReflect ¶
func (x *ReceiveReq) ProtoReflect() protoreflect.Message
func (*ReceiveReq) Reset ¶
func (x *ReceiveReq) Reset()
func (*ReceiveReq) String ¶
func (x *ReceiveReq) String() string
type UnimplementedLogicServer ¶
type UnimplementedLogicServer struct { }
UnimplementedLogicServer must be embedded to have forward compatible implementations.
func (UnimplementedLogicServer) Connect ¶
func (UnimplementedLogicServer) Connect(context.Context, *ConnectReq) (*ConnectReply, error)
func (UnimplementedLogicServer) Disconnect ¶
func (UnimplementedLogicServer) Disconnect(context.Context, *DisconnectReq) (*DisconnectReply, error)
func (UnimplementedLogicServer) Heartbeat ¶
func (UnimplementedLogicServer) Heartbeat(context.Context, *HeartbeatReq) (*HeartbeatReply, error)
func (UnimplementedLogicServer) Nodes ¶
func (UnimplementedLogicServer) Nodes(context.Context, *NodesReq) (*NodesReply, error)
func (UnimplementedLogicServer) PushAll ¶
func (UnimplementedLogicServer) PushAll(context.Context, *PushAllReq) (*PushAllReply, error)
func (UnimplementedLogicServer) PushKeys ¶
func (UnimplementedLogicServer) PushKeys(context.Context, *PushKeysReq) (*PushKeysReply, error)
func (UnimplementedLogicServer) PushMids ¶
func (UnimplementedLogicServer) PushMids(context.Context, *PushMidsReq) (*PushMidsReply, error)
func (UnimplementedLogicServer) PushRoom ¶
func (UnimplementedLogicServer) PushRoom(context.Context, *PushRoomReq) (*PushRoomReply, error)
func (UnimplementedLogicServer) Receive ¶
func (UnimplementedLogicServer) Receive(context.Context, *ReceiveReq) (*ReceiveReply, error)
func (UnimplementedLogicServer) RenewOnline ¶
func (UnimplementedLogicServer) RenewOnline(context.Context, *OnlineReq) (*OnlineReply, error)
type UnsafeLogicServer ¶
type UnsafeLogicServer interface {
// contains filtered or unexported methods
}
UnsafeLogicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogicServer will result in compilation errors.