Documentation ¶
Index ¶
- Variables
- func RegisterGateServer(s grpc.ServiceRegistrar, srv GateServer)
- func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)
- type BindReply
- func (*BindReply) Descriptor() ([]byte, []int)
- func (m *BindReply) Marshal() (dAtA []byte, err error)
- func (m *BindReply) MarshalTo(dAtA []byte) (int, error)
- func (m *BindReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BindReply) ProtoMessage()
- func (m *BindReply) Reset()
- func (m *BindReply) Size() (n int)
- func (m *BindReply) String() string
- func (m *BindReply) Unmarshal(dAtA []byte) error
- func (m *BindReply) XXX_DiscardUnknown()
- func (m *BindReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BindReply) XXX_Merge(src proto.Message)
- func (m *BindReply) XXX_Size() int
- func (m *BindReply) XXX_Unmarshal(b []byte) error
- type BindRequest
- func (*BindRequest) Descriptor() ([]byte, []int)
- func (m *BindRequest) GetCID() int64
- func (m *BindRequest) GetUID() int64
- func (m *BindRequest) Marshal() (dAtA []byte, err error)
- func (m *BindRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *BindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BindRequest) ProtoMessage()
- func (m *BindRequest) Reset()
- func (m *BindRequest) Size() (n int)
- func (m *BindRequest) String() string
- func (m *BindRequest) Unmarshal(dAtA []byte) error
- func (m *BindRequest) XXX_DiscardUnknown()
- func (m *BindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BindRequest) XXX_Merge(src proto.Message)
- func (m *BindRequest) XXX_Size() int
- func (m *BindRequest) XXX_Unmarshal(b []byte) error
- type BroadcastReply
- func (*BroadcastReply) Descriptor() ([]byte, []int)
- func (m *BroadcastReply) GetTotal() int64
- func (m *BroadcastReply) Marshal() (dAtA []byte, err error)
- func (m *BroadcastReply) MarshalTo(dAtA []byte) (int, error)
- func (m *BroadcastReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BroadcastReply) ProtoMessage()
- func (m *BroadcastReply) Reset()
- func (m *BroadcastReply) Size() (n int)
- func (m *BroadcastReply) String() string
- func (m *BroadcastReply) Unmarshal(dAtA []byte) error
- func (m *BroadcastReply) XXX_DiscardUnknown()
- func (m *BroadcastReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadcastReply) XXX_Merge(src proto.Message)
- func (m *BroadcastReply) XXX_Size() int
- func (m *BroadcastReply) XXX_Unmarshal(b []byte) error
- type BroadcastRequest
- func (*BroadcastRequest) Descriptor() ([]byte, []int)
- func (m *BroadcastRequest) GetKind() int32
- func (m *BroadcastRequest) GetMessage() *Message
- func (m *BroadcastRequest) Marshal() (dAtA []byte, err error)
- func (m *BroadcastRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *BroadcastRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BroadcastRequest) ProtoMessage()
- func (m *BroadcastRequest) Reset()
- func (m *BroadcastRequest) Size() (n int)
- func (m *BroadcastRequest) String() string
- func (m *BroadcastRequest) Unmarshal(dAtA []byte) error
- func (m *BroadcastRequest) XXX_DiscardUnknown()
- func (m *BroadcastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadcastRequest) XXX_Merge(src proto.Message)
- func (m *BroadcastRequest) XXX_Size() int
- func (m *BroadcastRequest) XXX_Unmarshal(b []byte) error
- type DeliverReply
- func (*DeliverReply) Descriptor() ([]byte, []int)
- func (m *DeliverReply) Marshal() (dAtA []byte, err error)
- func (m *DeliverReply) MarshalTo(dAtA []byte) (int, error)
- func (m *DeliverReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeliverReply) ProtoMessage()
- func (m *DeliverReply) Reset()
- func (m *DeliverReply) Size() (n int)
- func (m *DeliverReply) String() string
- func (m *DeliverReply) Unmarshal(dAtA []byte) error
- func (m *DeliverReply) XXX_DiscardUnknown()
- func (m *DeliverReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeliverReply) XXX_Merge(src proto.Message)
- func (m *DeliverReply) XXX_Size() int
- func (m *DeliverReply) XXX_Unmarshal(b []byte) error
- type DeliverRequest
- func (*DeliverRequest) Descriptor() ([]byte, []int)
- func (m *DeliverRequest) GetCID() int64
- func (m *DeliverRequest) GetGID() string
- func (m *DeliverRequest) GetMessage() *Message
- func (m *DeliverRequest) GetNID() string
- func (m *DeliverRequest) GetUID() int64
- func (m *DeliverRequest) Marshal() (dAtA []byte, err error)
- func (m *DeliverRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeliverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeliverRequest) ProtoMessage()
- func (m *DeliverRequest) Reset()
- func (m *DeliverRequest) Size() (n int)
- func (m *DeliverRequest) String() string
- func (m *DeliverRequest) Unmarshal(dAtA []byte) error
- func (m *DeliverRequest) XXX_DiscardUnknown()
- func (m *DeliverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeliverRequest) XXX_Merge(src proto.Message)
- func (m *DeliverRequest) XXX_Size() int
- func (m *DeliverRequest) XXX_Unmarshal(b []byte) error
- type DisconnectReply
- func (*DisconnectReply) Descriptor() ([]byte, []int)
- func (m *DisconnectReply) Marshal() (dAtA []byte, err error)
- func (m *DisconnectReply) MarshalTo(dAtA []byte) (int, error)
- func (m *DisconnectReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DisconnectReply) ProtoMessage()
- func (m *DisconnectReply) Reset()
- func (m *DisconnectReply) Size() (n int)
- func (m *DisconnectReply) String() string
- func (m *DisconnectReply) Unmarshal(dAtA []byte) error
- func (m *DisconnectReply) XXX_DiscardUnknown()
- func (m *DisconnectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DisconnectReply) XXX_Merge(src proto.Message)
- func (m *DisconnectReply) XXX_Size() int
- func (m *DisconnectReply) XXX_Unmarshal(b []byte) error
- type DisconnectRequest
- func (*DisconnectRequest) Descriptor() ([]byte, []int)
- func (m *DisconnectRequest) GetIsForce() bool
- func (m *DisconnectRequest) GetKind() int32
- func (m *DisconnectRequest) GetTarget() int64
- func (m *DisconnectRequest) Marshal() (dAtA []byte, err error)
- func (m *DisconnectRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DisconnectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DisconnectRequest) ProtoMessage()
- func (m *DisconnectRequest) Reset()
- func (m *DisconnectRequest) Size() (n int)
- func (m *DisconnectRequest) String() string
- func (m *DisconnectRequest) Unmarshal(dAtA []byte) error
- func (m *DisconnectRequest) XXX_DiscardUnknown()
- func (m *DisconnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DisconnectRequest) XXX_Merge(src proto.Message)
- func (m *DisconnectRequest) XXX_Size() int
- func (m *DisconnectRequest) XXX_Unmarshal(b []byte) error
- type GateClient
- type GateServer
- type GetIPReply
- func (*GetIPReply) Descriptor() ([]byte, []int)
- func (m *GetIPReply) GetIP() string
- func (m *GetIPReply) Marshal() (dAtA []byte, err error)
- func (m *GetIPReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetIPReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetIPReply) ProtoMessage()
- func (m *GetIPReply) Reset()
- func (m *GetIPReply) Size() (n int)
- func (m *GetIPReply) String() string
- func (m *GetIPReply) Unmarshal(dAtA []byte) error
- func (m *GetIPReply) XXX_DiscardUnknown()
- func (m *GetIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetIPReply) XXX_Merge(src proto.Message)
- func (m *GetIPReply) XXX_Size() int
- func (m *GetIPReply) XXX_Unmarshal(b []byte) error
- type GetIPRequest
- func (*GetIPRequest) Descriptor() ([]byte, []int)
- func (m *GetIPRequest) GetKind() int32
- func (m *GetIPRequest) GetTarget() int64
- func (m *GetIPRequest) Marshal() (dAtA []byte, err error)
- func (m *GetIPRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetIPRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetIPRequest) ProtoMessage()
- func (m *GetIPRequest) Reset()
- func (m *GetIPRequest) Size() (n int)
- func (m *GetIPRequest) String() string
- func (m *GetIPRequest) Unmarshal(dAtA []byte) error
- func (m *GetIPRequest) XXX_DiscardUnknown()
- func (m *GetIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetIPRequest) XXX_Merge(src proto.Message)
- func (m *GetIPRequest) XXX_Size() int
- func (m *GetIPRequest) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetBuffer() []byte
- func (m *Message) GetRoute() int32
- func (m *Message) GetSeq() int32
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type MulticastReply
- func (*MulticastReply) Descriptor() ([]byte, []int)
- func (m *MulticastReply) GetTotal() int64
- func (m *MulticastReply) Marshal() (dAtA []byte, err error)
- func (m *MulticastReply) MarshalTo(dAtA []byte) (int, error)
- func (m *MulticastReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MulticastReply) ProtoMessage()
- func (m *MulticastReply) Reset()
- func (m *MulticastReply) Size() (n int)
- func (m *MulticastReply) String() string
- func (m *MulticastReply) Unmarshal(dAtA []byte) error
- func (m *MulticastReply) XXX_DiscardUnknown()
- func (m *MulticastReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MulticastReply) XXX_Merge(src proto.Message)
- func (m *MulticastReply) XXX_Size() int
- func (m *MulticastReply) XXX_Unmarshal(b []byte) error
- type MulticastRequest
- func (*MulticastRequest) Descriptor() ([]byte, []int)
- func (m *MulticastRequest) GetKind() int32
- func (m *MulticastRequest) GetMessage() *Message
- func (m *MulticastRequest) GetTargets() []int64
- func (m *MulticastRequest) Marshal() (dAtA []byte, err error)
- func (m *MulticastRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MulticastRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MulticastRequest) ProtoMessage()
- func (m *MulticastRequest) Reset()
- func (m *MulticastRequest) Size() (n int)
- func (m *MulticastRequest) String() string
- func (m *MulticastRequest) Unmarshal(dAtA []byte) error
- func (m *MulticastRequest) XXX_DiscardUnknown()
- func (m *MulticastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MulticastRequest) XXX_Merge(src proto.Message)
- func (m *MulticastRequest) XXX_Size() int
- func (m *MulticastRequest) XXX_Unmarshal(b []byte) error
- type NodeClient
- type NodeServer
- type PushReply
- func (*PushReply) Descriptor() ([]byte, []int)
- func (m *PushReply) Marshal() (dAtA []byte, err error)
- func (m *PushReply) MarshalTo(dAtA []byte) (int, error)
- func (m *PushReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PushReply) ProtoMessage()
- func (m *PushReply) Reset()
- func (m *PushReply) Size() (n int)
- func (m *PushReply) String() string
- func (m *PushReply) Unmarshal(dAtA []byte) error
- func (m *PushReply) XXX_DiscardUnknown()
- func (m *PushReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushReply) XXX_Merge(src proto.Message)
- func (m *PushReply) XXX_Size() int
- func (m *PushReply) XXX_Unmarshal(b []byte) error
- type PushRequest
- func (*PushRequest) Descriptor() ([]byte, []int)
- func (m *PushRequest) GetKind() int32
- func (m *PushRequest) GetMessage() *Message
- func (m *PushRequest) GetTarget() int64
- func (m *PushRequest) Marshal() (dAtA []byte, err error)
- func (m *PushRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PushRequest) ProtoMessage()
- func (m *PushRequest) Reset()
- func (m *PushRequest) Size() (n int)
- func (m *PushRequest) String() string
- func (m *PushRequest) Unmarshal(dAtA []byte) error
- func (m *PushRequest) XXX_DiscardUnknown()
- func (m *PushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushRequest) XXX_Merge(src proto.Message)
- func (m *PushRequest) XXX_Size() int
- func (m *PushRequest) XXX_Unmarshal(b []byte) error
- type TriggerReply
- func (*TriggerReply) Descriptor() ([]byte, []int)
- func (m *TriggerReply) Marshal() (dAtA []byte, err error)
- func (m *TriggerReply) MarshalTo(dAtA []byte) (int, error)
- func (m *TriggerReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TriggerReply) ProtoMessage()
- func (m *TriggerReply) Reset()
- func (m *TriggerReply) Size() (n int)
- func (m *TriggerReply) String() string
- func (m *TriggerReply) Unmarshal(dAtA []byte) error
- func (m *TriggerReply) XXX_DiscardUnknown()
- func (m *TriggerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TriggerReply) XXX_Merge(src proto.Message)
- func (m *TriggerReply) XXX_Size() int
- func (m *TriggerReply) XXX_Unmarshal(b []byte) error
- type TriggerRequest
- func (*TriggerRequest) Descriptor() ([]byte, []int)
- func (m *TriggerRequest) GetCID() int64
- func (m *TriggerRequest) GetEvent() int32
- func (m *TriggerRequest) GetGID() string
- func (m *TriggerRequest) GetUID() int64
- func (m *TriggerRequest) Marshal() (dAtA []byte, err error)
- func (m *TriggerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TriggerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TriggerRequest) ProtoMessage()
- func (m *TriggerRequest) Reset()
- func (m *TriggerRequest) Size() (n int)
- func (m *TriggerRequest) String() string
- func (m *TriggerRequest) Unmarshal(dAtA []byte) error
- func (m *TriggerRequest) XXX_DiscardUnknown()
- func (m *TriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TriggerRequest) XXX_Merge(src proto.Message)
- func (m *TriggerRequest) XXX_Size() int
- func (m *TriggerRequest) XXX_Unmarshal(b []byte) error
- type UnbindReply
- func (*UnbindReply) Descriptor() ([]byte, []int)
- func (m *UnbindReply) Marshal() (dAtA []byte, err error)
- func (m *UnbindReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbindReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbindReply) ProtoMessage()
- func (m *UnbindReply) Reset()
- func (m *UnbindReply) Size() (n int)
- func (m *UnbindReply) String() string
- func (m *UnbindReply) Unmarshal(dAtA []byte) error
- func (m *UnbindReply) XXX_DiscardUnknown()
- func (m *UnbindReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbindReply) XXX_Merge(src proto.Message)
- func (m *UnbindReply) XXX_Size() int
- func (m *UnbindReply) XXX_Unmarshal(b []byte) error
- type UnbindRequest
- func (*UnbindRequest) Descriptor() ([]byte, []int)
- func (m *UnbindRequest) GetUID() int64
- func (m *UnbindRequest) Marshal() (dAtA []byte, err error)
- func (m *UnbindRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbindRequest) ProtoMessage()
- func (m *UnbindRequest) Reset()
- func (m *UnbindRequest) Size() (n int)
- func (m *UnbindRequest) String() string
- func (m *UnbindRequest) Unmarshal(dAtA []byte) error
- func (m *UnbindRequest) XXX_DiscardUnknown()
- func (m *UnbindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbindRequest) XXX_Merge(src proto.Message)
- func (m *UnbindRequest) XXX_Size() int
- func (m *UnbindRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedGateServer
- func (UnimplementedGateServer) Bind(context.Context, *BindRequest) (*BindReply, error)
- func (UnimplementedGateServer) Broadcast(context.Context, *BroadcastRequest) (*BroadcastReply, error)
- func (UnimplementedGateServer) Disconnect(context.Context, *DisconnectRequest) (*DisconnectReply, error)
- func (UnimplementedGateServer) GetIP(context.Context, *GetIPRequest) (*GetIPReply, error)
- func (UnimplementedGateServer) Multicast(context.Context, *MulticastRequest) (*MulticastReply, error)
- func (UnimplementedGateServer) Push(context.Context, *PushRequest) (*PushReply, error)
- func (UnimplementedGateServer) Unbind(context.Context, *UnbindRequest) (*UnbindReply, error)
- type UnimplementedNodeServer
- type UnsafeGateServer
- type UnsafeNodeServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthGate = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGate = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGate = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthNode = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNode = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group") )
var Gate_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Gate", HandlerType: (*GateServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Bind", Handler: _Gate_Bind_Handler, }, { MethodName: "Unbind", Handler: _Gate_Unbind_Handler, }, { MethodName: "GetIP", Handler: _Gate_GetIP_Handler, }, { MethodName: "Disconnect", Handler: _Gate_Disconnect_Handler, }, { MethodName: "Push", Handler: _Gate_Push_Handler, }, { MethodName: "Multicast", Handler: _Gate_Multicast_Handler, }, { MethodName: "Broadcast", Handler: _Gate_Broadcast_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gate.proto", }
Gate_ServiceDesc is the grpc.ServiceDesc for Gate service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Node_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Node", HandlerType: (*NodeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Trigger", Handler: _Node_Trigger_Handler, }, { MethodName: "Deliver", Handler: _Node_Deliver_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "node.proto", }
Node_ServiceDesc is the grpc.ServiceDesc for Node service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGateServer ¶
func RegisterGateServer(s grpc.ServiceRegistrar, srv GateServer)
func RegisterNodeServer ¶
func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)
Types ¶
type BindReply ¶
type BindReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BindReply) Descriptor ¶
func (*BindReply) MarshalToSizedBuffer ¶
func (*BindReply) ProtoMessage ¶
func (*BindReply) ProtoMessage()
func (*BindReply) XXX_DiscardUnknown ¶
func (m *BindReply) XXX_DiscardUnknown()
func (*BindReply) XXX_Marshal ¶
func (*BindReply) XXX_Unmarshal ¶
type BindRequest ¶
type BindRequest struct { CID int64 `protobuf:"varint,1,opt,name=CID,proto3" json:"CID,omitempty"` UID int64 `protobuf:"varint,2,opt,name=UID,proto3" json:"UID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BindRequest) Descriptor ¶
func (*BindRequest) Descriptor() ([]byte, []int)
func (*BindRequest) GetCID ¶
func (m *BindRequest) GetCID() int64
func (*BindRequest) GetUID ¶
func (m *BindRequest) GetUID() int64
func (*BindRequest) Marshal ¶
func (m *BindRequest) Marshal() (dAtA []byte, err error)
func (*BindRequest) MarshalToSizedBuffer ¶
func (m *BindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BindRequest) ProtoMessage ¶
func (*BindRequest) ProtoMessage()
func (*BindRequest) Reset ¶
func (m *BindRequest) Reset()
func (*BindRequest) Size ¶
func (m *BindRequest) Size() (n int)
func (*BindRequest) String ¶
func (m *BindRequest) String() string
func (*BindRequest) Unmarshal ¶
func (m *BindRequest) Unmarshal(dAtA []byte) error
func (*BindRequest) XXX_DiscardUnknown ¶
func (m *BindRequest) XXX_DiscardUnknown()
func (*BindRequest) XXX_Marshal ¶
func (m *BindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BindRequest) XXX_Merge ¶
func (m *BindRequest) XXX_Merge(src proto.Message)
func (*BindRequest) XXX_Size ¶
func (m *BindRequest) XXX_Size() int
func (*BindRequest) XXX_Unmarshal ¶
func (m *BindRequest) XXX_Unmarshal(b []byte) error
type BroadcastReply ¶
type BroadcastReply struct { Total int64 `protobuf:"varint,1,opt,name=Total,proto3" json:"Total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BroadcastReply) Descriptor ¶
func (*BroadcastReply) Descriptor() ([]byte, []int)
func (*BroadcastReply) GetTotal ¶
func (m *BroadcastReply) GetTotal() int64
func (*BroadcastReply) Marshal ¶
func (m *BroadcastReply) Marshal() (dAtA []byte, err error)
func (*BroadcastReply) MarshalToSizedBuffer ¶
func (m *BroadcastReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BroadcastReply) ProtoMessage ¶
func (*BroadcastReply) ProtoMessage()
func (*BroadcastReply) Reset ¶
func (m *BroadcastReply) Reset()
func (*BroadcastReply) Size ¶
func (m *BroadcastReply) Size() (n int)
func (*BroadcastReply) String ¶
func (m *BroadcastReply) String() string
func (*BroadcastReply) Unmarshal ¶
func (m *BroadcastReply) Unmarshal(dAtA []byte) error
func (*BroadcastReply) XXX_DiscardUnknown ¶
func (m *BroadcastReply) XXX_DiscardUnknown()
func (*BroadcastReply) XXX_Marshal ¶
func (m *BroadcastReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BroadcastReply) XXX_Merge ¶
func (m *BroadcastReply) XXX_Merge(src proto.Message)
func (*BroadcastReply) XXX_Size ¶
func (m *BroadcastReply) XXX_Size() int
func (*BroadcastReply) XXX_Unmarshal ¶
func (m *BroadcastReply) XXX_Unmarshal(b []byte) error
type BroadcastRequest ¶
type BroadcastRequest struct { Kind int32 `protobuf:"varint,1,opt,name=Kind,proto3" json:"Kind,omitempty"` Message *Message `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BroadcastRequest) Descriptor ¶
func (*BroadcastRequest) Descriptor() ([]byte, []int)
func (*BroadcastRequest) GetKind ¶
func (m *BroadcastRequest) GetKind() int32
func (*BroadcastRequest) GetMessage ¶
func (m *BroadcastRequest) GetMessage() *Message
func (*BroadcastRequest) Marshal ¶
func (m *BroadcastRequest) Marshal() (dAtA []byte, err error)
func (*BroadcastRequest) MarshalToSizedBuffer ¶
func (m *BroadcastRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BroadcastRequest) ProtoMessage ¶
func (*BroadcastRequest) ProtoMessage()
func (*BroadcastRequest) Reset ¶
func (m *BroadcastRequest) Reset()
func (*BroadcastRequest) Size ¶
func (m *BroadcastRequest) Size() (n int)
func (*BroadcastRequest) String ¶
func (m *BroadcastRequest) String() string
func (*BroadcastRequest) Unmarshal ¶
func (m *BroadcastRequest) Unmarshal(dAtA []byte) error
func (*BroadcastRequest) XXX_DiscardUnknown ¶
func (m *BroadcastRequest) XXX_DiscardUnknown()
func (*BroadcastRequest) XXX_Marshal ¶
func (m *BroadcastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BroadcastRequest) XXX_Merge ¶
func (m *BroadcastRequest) XXX_Merge(src proto.Message)
func (*BroadcastRequest) XXX_Size ¶
func (m *BroadcastRequest) XXX_Size() int
func (*BroadcastRequest) XXX_Unmarshal ¶
func (m *BroadcastRequest) XXX_Unmarshal(b []byte) error
type DeliverReply ¶
type DeliverReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeliverReply) Descriptor ¶
func (*DeliverReply) Descriptor() ([]byte, []int)
func (*DeliverReply) Marshal ¶
func (m *DeliverReply) Marshal() (dAtA []byte, err error)
func (*DeliverReply) MarshalToSizedBuffer ¶
func (m *DeliverReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeliverReply) ProtoMessage ¶
func (*DeliverReply) ProtoMessage()
func (*DeliverReply) Reset ¶
func (m *DeliverReply) Reset()
func (*DeliverReply) Size ¶
func (m *DeliverReply) Size() (n int)
func (*DeliverReply) String ¶
func (m *DeliverReply) String() string
func (*DeliverReply) Unmarshal ¶
func (m *DeliverReply) Unmarshal(dAtA []byte) error
func (*DeliverReply) XXX_DiscardUnknown ¶
func (m *DeliverReply) XXX_DiscardUnknown()
func (*DeliverReply) XXX_Marshal ¶
func (m *DeliverReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeliverReply) XXX_Merge ¶
func (m *DeliverReply) XXX_Merge(src proto.Message)
func (*DeliverReply) XXX_Size ¶
func (m *DeliverReply) XXX_Size() int
func (*DeliverReply) XXX_Unmarshal ¶
func (m *DeliverReply) XXX_Unmarshal(b []byte) error
type DeliverRequest ¶
type DeliverRequest struct { GID string `protobuf:"bytes,1,opt,name=GID,proto3" json:"GID,omitempty"` NID string `protobuf:"bytes,2,opt,name=NID,proto3" json:"NID,omitempty"` CID int64 `protobuf:"varint,3,opt,name=CID,proto3" json:"CID,omitempty"` UID int64 `protobuf:"varint,4,opt,name=UID,proto3" json:"UID,omitempty"` Message *Message `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeliverRequest) Descriptor ¶
func (*DeliverRequest) Descriptor() ([]byte, []int)
func (*DeliverRequest) GetCID ¶
func (m *DeliverRequest) GetCID() int64
func (*DeliverRequest) GetGID ¶
func (m *DeliverRequest) GetGID() string
func (*DeliverRequest) GetMessage ¶
func (m *DeliverRequest) GetMessage() *Message
func (*DeliverRequest) GetNID ¶
func (m *DeliverRequest) GetNID() string
func (*DeliverRequest) GetUID ¶
func (m *DeliverRequest) GetUID() int64
func (*DeliverRequest) Marshal ¶
func (m *DeliverRequest) Marshal() (dAtA []byte, err error)
func (*DeliverRequest) MarshalToSizedBuffer ¶
func (m *DeliverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeliverRequest) ProtoMessage ¶
func (*DeliverRequest) ProtoMessage()
func (*DeliverRequest) Reset ¶
func (m *DeliverRequest) Reset()
func (*DeliverRequest) Size ¶
func (m *DeliverRequest) Size() (n int)
func (*DeliverRequest) String ¶
func (m *DeliverRequest) String() string
func (*DeliverRequest) Unmarshal ¶
func (m *DeliverRequest) Unmarshal(dAtA []byte) error
func (*DeliverRequest) XXX_DiscardUnknown ¶
func (m *DeliverRequest) XXX_DiscardUnknown()
func (*DeliverRequest) XXX_Marshal ¶
func (m *DeliverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeliverRequest) XXX_Merge ¶
func (m *DeliverRequest) XXX_Merge(src proto.Message)
func (*DeliverRequest) XXX_Size ¶
func (m *DeliverRequest) XXX_Size() int
func (*DeliverRequest) XXX_Unmarshal ¶
func (m *DeliverRequest) XXX_Unmarshal(b []byte) error
type DisconnectReply ¶
type DisconnectReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DisconnectReply) Descriptor ¶
func (*DisconnectReply) Descriptor() ([]byte, []int)
func (*DisconnectReply) Marshal ¶
func (m *DisconnectReply) Marshal() (dAtA []byte, err error)
func (*DisconnectReply) MarshalToSizedBuffer ¶
func (m *DisconnectReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DisconnectReply) ProtoMessage ¶
func (*DisconnectReply) ProtoMessage()
func (*DisconnectReply) Reset ¶
func (m *DisconnectReply) Reset()
func (*DisconnectReply) Size ¶
func (m *DisconnectReply) Size() (n int)
func (*DisconnectReply) String ¶
func (m *DisconnectReply) String() string
func (*DisconnectReply) Unmarshal ¶
func (m *DisconnectReply) Unmarshal(dAtA []byte) error
func (*DisconnectReply) XXX_DiscardUnknown ¶
func (m *DisconnectReply) XXX_DiscardUnknown()
func (*DisconnectReply) XXX_Marshal ¶
func (m *DisconnectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisconnectReply) XXX_Merge ¶
func (m *DisconnectReply) XXX_Merge(src proto.Message)
func (*DisconnectReply) XXX_Size ¶
func (m *DisconnectReply) XXX_Size() int
func (*DisconnectReply) XXX_Unmarshal ¶
func (m *DisconnectReply) XXX_Unmarshal(b []byte) error
type DisconnectRequest ¶
type DisconnectRequest struct { Kind int32 `protobuf:"varint,1,opt,name=Kind,proto3" json:"Kind,omitempty"` Target int64 `protobuf:"varint,2,opt,name=Target,proto3" json:"Target,omitempty"` IsForce bool `protobuf:"varint,3,opt,name=IsForce,proto3" json:"IsForce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DisconnectRequest) Descriptor ¶
func (*DisconnectRequest) Descriptor() ([]byte, []int)
func (*DisconnectRequest) GetIsForce ¶
func (m *DisconnectRequest) GetIsForce() bool
func (*DisconnectRequest) GetKind ¶
func (m *DisconnectRequest) GetKind() int32
func (*DisconnectRequest) GetTarget ¶
func (m *DisconnectRequest) GetTarget() int64
func (*DisconnectRequest) Marshal ¶
func (m *DisconnectRequest) Marshal() (dAtA []byte, err error)
func (*DisconnectRequest) MarshalTo ¶
func (m *DisconnectRequest) MarshalTo(dAtA []byte) (int, error)
func (*DisconnectRequest) MarshalToSizedBuffer ¶
func (m *DisconnectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DisconnectRequest) ProtoMessage ¶
func (*DisconnectRequest) ProtoMessage()
func (*DisconnectRequest) Reset ¶
func (m *DisconnectRequest) Reset()
func (*DisconnectRequest) Size ¶
func (m *DisconnectRequest) Size() (n int)
func (*DisconnectRequest) String ¶
func (m *DisconnectRequest) String() string
func (*DisconnectRequest) Unmarshal ¶
func (m *DisconnectRequest) Unmarshal(dAtA []byte) error
func (*DisconnectRequest) XXX_DiscardUnknown ¶
func (m *DisconnectRequest) XXX_DiscardUnknown()
func (*DisconnectRequest) XXX_Marshal ¶
func (m *DisconnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisconnectRequest) XXX_Merge ¶
func (m *DisconnectRequest) XXX_Merge(src proto.Message)
func (*DisconnectRequest) XXX_Size ¶
func (m *DisconnectRequest) XXX_Size() int
func (*DisconnectRequest) XXX_Unmarshal ¶
func (m *DisconnectRequest) XXX_Unmarshal(b []byte) error
type GateClient ¶
type GateClient interface { // 绑定用户与连接 Bind(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*BindReply, error) // 解绑用户与连接 Unbind(ctx context.Context, in *UnbindRequest, opts ...grpc.CallOption) (*UnbindReply, error) // 获取客户端IP GetIP(ctx context.Context, in *GetIPRequest, opts ...grpc.CallOption) (*GetIPReply, error) // 断开连接 Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (*DisconnectReply, error) // 推送消息 Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushReply, error) // 推送组播消息 Multicast(ctx context.Context, in *MulticastRequest, opts ...grpc.CallOption) (*MulticastReply, error) // 推送广播消息 Broadcast(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastReply, error) }
GateClient is the client API for Gate 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 NewGateClient ¶
func NewGateClient(cc grpc.ClientConnInterface) GateClient
type GateServer ¶
type GateServer interface { // 绑定用户与连接 Bind(context.Context, *BindRequest) (*BindReply, error) // 解绑用户与连接 Unbind(context.Context, *UnbindRequest) (*UnbindReply, error) // 获取客户端IP GetIP(context.Context, *GetIPRequest) (*GetIPReply, error) // 断开连接 Disconnect(context.Context, *DisconnectRequest) (*DisconnectReply, error) // 推送消息 Push(context.Context, *PushRequest) (*PushReply, error) // 推送组播消息 Multicast(context.Context, *MulticastRequest) (*MulticastReply, error) // 推送广播消息 Broadcast(context.Context, *BroadcastRequest) (*BroadcastReply, error) // contains filtered or unexported methods }
GateServer is the server API for Gate service. All implementations must embed UnimplementedGateServer for forward compatibility
type GetIPReply ¶
type GetIPReply struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetIPReply) Descriptor ¶
func (*GetIPReply) Descriptor() ([]byte, []int)
func (*GetIPReply) GetIP ¶
func (m *GetIPReply) GetIP() string
func (*GetIPReply) Marshal ¶
func (m *GetIPReply) Marshal() (dAtA []byte, err error)
func (*GetIPReply) MarshalToSizedBuffer ¶
func (m *GetIPReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetIPReply) ProtoMessage ¶
func (*GetIPReply) ProtoMessage()
func (*GetIPReply) Reset ¶
func (m *GetIPReply) Reset()
func (*GetIPReply) Size ¶
func (m *GetIPReply) Size() (n int)
func (*GetIPReply) String ¶
func (m *GetIPReply) String() string
func (*GetIPReply) Unmarshal ¶
func (m *GetIPReply) Unmarshal(dAtA []byte) error
func (*GetIPReply) XXX_DiscardUnknown ¶
func (m *GetIPReply) XXX_DiscardUnknown()
func (*GetIPReply) XXX_Marshal ¶
func (m *GetIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetIPReply) XXX_Merge ¶
func (m *GetIPReply) XXX_Merge(src proto.Message)
func (*GetIPReply) XXX_Size ¶
func (m *GetIPReply) XXX_Size() int
func (*GetIPReply) XXX_Unmarshal ¶
func (m *GetIPReply) XXX_Unmarshal(b []byte) error
type GetIPRequest ¶
type GetIPRequest struct { Kind int32 `protobuf:"varint,1,opt,name=Kind,proto3" json:"Kind,omitempty"` Target int64 `protobuf:"varint,2,opt,name=Target,proto3" json:"Target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetIPRequest) Descriptor ¶
func (*GetIPRequest) Descriptor() ([]byte, []int)
func (*GetIPRequest) GetKind ¶
func (m *GetIPRequest) GetKind() int32
func (*GetIPRequest) GetTarget ¶
func (m *GetIPRequest) GetTarget() int64
func (*GetIPRequest) Marshal ¶
func (m *GetIPRequest) Marshal() (dAtA []byte, err error)
func (*GetIPRequest) MarshalToSizedBuffer ¶
func (m *GetIPRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetIPRequest) ProtoMessage ¶
func (*GetIPRequest) ProtoMessage()
func (*GetIPRequest) Reset ¶
func (m *GetIPRequest) Reset()
func (*GetIPRequest) Size ¶
func (m *GetIPRequest) Size() (n int)
func (*GetIPRequest) String ¶
func (m *GetIPRequest) String() string
func (*GetIPRequest) Unmarshal ¶
func (m *GetIPRequest) Unmarshal(dAtA []byte) error
func (*GetIPRequest) XXX_DiscardUnknown ¶
func (m *GetIPRequest) XXX_DiscardUnknown()
func (*GetIPRequest) XXX_Marshal ¶
func (m *GetIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetIPRequest) XXX_Merge ¶
func (m *GetIPRequest) XXX_Merge(src proto.Message)
func (*GetIPRequest) XXX_Size ¶
func (m *GetIPRequest) XXX_Size() int
func (*GetIPRequest) XXX_Unmarshal ¶
func (m *GetIPRequest) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { Seq int32 `protobuf:"varint,1,opt,name=Seq,proto3" json:"Seq,omitempty"` Route int32 `protobuf:"varint,2,opt,name=Route,proto3" json:"Route,omitempty"` Buffer []byte `protobuf:"bytes,3,opt,name=Buffer,proto3" json:"Buffer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type MulticastReply ¶
type MulticastReply struct { Total int64 `protobuf:"varint,1,opt,name=Total,proto3" json:"Total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MulticastReply) Descriptor ¶
func (*MulticastReply) Descriptor() ([]byte, []int)
func (*MulticastReply) GetTotal ¶
func (m *MulticastReply) GetTotal() int64
func (*MulticastReply) Marshal ¶
func (m *MulticastReply) Marshal() (dAtA []byte, err error)
func (*MulticastReply) MarshalToSizedBuffer ¶
func (m *MulticastReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MulticastReply) ProtoMessage ¶
func (*MulticastReply) ProtoMessage()
func (*MulticastReply) Reset ¶
func (m *MulticastReply) Reset()
func (*MulticastReply) Size ¶
func (m *MulticastReply) Size() (n int)
func (*MulticastReply) String ¶
func (m *MulticastReply) String() string
func (*MulticastReply) Unmarshal ¶
func (m *MulticastReply) Unmarshal(dAtA []byte) error
func (*MulticastReply) XXX_DiscardUnknown ¶
func (m *MulticastReply) XXX_DiscardUnknown()
func (*MulticastReply) XXX_Marshal ¶
func (m *MulticastReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MulticastReply) XXX_Merge ¶
func (m *MulticastReply) XXX_Merge(src proto.Message)
func (*MulticastReply) XXX_Size ¶
func (m *MulticastReply) XXX_Size() int
func (*MulticastReply) XXX_Unmarshal ¶
func (m *MulticastReply) XXX_Unmarshal(b []byte) error
type MulticastRequest ¶
type MulticastRequest struct { Kind int32 `protobuf:"varint,1,opt,name=Kind,proto3" json:"Kind,omitempty"` Targets []int64 `protobuf:"varint,2,rep,packed,name=Targets,proto3" json:"Targets,omitempty"` Message *Message `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MulticastRequest) Descriptor ¶
func (*MulticastRequest) Descriptor() ([]byte, []int)
func (*MulticastRequest) GetKind ¶
func (m *MulticastRequest) GetKind() int32
func (*MulticastRequest) GetMessage ¶
func (m *MulticastRequest) GetMessage() *Message
func (*MulticastRequest) GetTargets ¶
func (m *MulticastRequest) GetTargets() []int64
func (*MulticastRequest) Marshal ¶
func (m *MulticastRequest) Marshal() (dAtA []byte, err error)
func (*MulticastRequest) MarshalToSizedBuffer ¶
func (m *MulticastRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MulticastRequest) ProtoMessage ¶
func (*MulticastRequest) ProtoMessage()
func (*MulticastRequest) Reset ¶
func (m *MulticastRequest) Reset()
func (*MulticastRequest) Size ¶
func (m *MulticastRequest) Size() (n int)
func (*MulticastRequest) String ¶
func (m *MulticastRequest) String() string
func (*MulticastRequest) Unmarshal ¶
func (m *MulticastRequest) Unmarshal(dAtA []byte) error
func (*MulticastRequest) XXX_DiscardUnknown ¶
func (m *MulticastRequest) XXX_DiscardUnknown()
func (*MulticastRequest) XXX_Marshal ¶
func (m *MulticastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MulticastRequest) XXX_Merge ¶
func (m *MulticastRequest) XXX_Merge(src proto.Message)
func (*MulticastRequest) XXX_Size ¶
func (m *MulticastRequest) XXX_Size() int
func (*MulticastRequest) XXX_Unmarshal ¶
func (m *MulticastRequest) XXX_Unmarshal(b []byte) error
type NodeClient ¶
type NodeClient interface { // 触发事件 Trigger(ctx context.Context, in *TriggerRequest, opts ...grpc.CallOption) (*TriggerReply, error) // 投递消息 Deliver(ctx context.Context, in *DeliverRequest, opts ...grpc.CallOption) (*DeliverReply, error) }
NodeClient is the client API for Node 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 NewNodeClient ¶
func NewNodeClient(cc grpc.ClientConnInterface) NodeClient
type NodeServer ¶
type NodeServer interface { // 触发事件 Trigger(context.Context, *TriggerRequest) (*TriggerReply, error) // 投递消息 Deliver(context.Context, *DeliverRequest) (*DeliverReply, error) // contains filtered or unexported methods }
NodeServer is the server API for Node service. All implementations must embed UnimplementedNodeServer for forward compatibility
type PushReply ¶
type PushReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PushReply) Descriptor ¶
func (*PushReply) MarshalToSizedBuffer ¶
func (*PushReply) ProtoMessage ¶
func (*PushReply) ProtoMessage()
func (*PushReply) XXX_DiscardUnknown ¶
func (m *PushReply) XXX_DiscardUnknown()
func (*PushReply) XXX_Marshal ¶
func (*PushReply) XXX_Unmarshal ¶
type PushRequest ¶
type PushRequest struct { Kind int32 `protobuf:"varint,1,opt,name=Kind,proto3" json:"Kind,omitempty"` Target int64 `protobuf:"varint,2,opt,name=Target,proto3" json:"Target,omitempty"` Message *Message `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PushRequest) Descriptor ¶
func (*PushRequest) Descriptor() ([]byte, []int)
func (*PushRequest) GetKind ¶
func (m *PushRequest) GetKind() int32
func (*PushRequest) GetMessage ¶
func (m *PushRequest) GetMessage() *Message
func (*PushRequest) GetTarget ¶
func (m *PushRequest) GetTarget() int64
func (*PushRequest) Marshal ¶
func (m *PushRequest) Marshal() (dAtA []byte, err error)
func (*PushRequest) MarshalToSizedBuffer ¶
func (m *PushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) Reset ¶
func (m *PushRequest) Reset()
func (*PushRequest) Size ¶
func (m *PushRequest) Size() (n int)
func (*PushRequest) String ¶
func (m *PushRequest) String() string
func (*PushRequest) Unmarshal ¶
func (m *PushRequest) Unmarshal(dAtA []byte) error
func (*PushRequest) XXX_DiscardUnknown ¶
func (m *PushRequest) XXX_DiscardUnknown()
func (*PushRequest) XXX_Marshal ¶
func (m *PushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PushRequest) XXX_Merge ¶
func (m *PushRequest) XXX_Merge(src proto.Message)
func (*PushRequest) XXX_Size ¶
func (m *PushRequest) XXX_Size() int
func (*PushRequest) XXX_Unmarshal ¶
func (m *PushRequest) XXX_Unmarshal(b []byte) error
type TriggerReply ¶
type TriggerReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TriggerReply) Descriptor ¶
func (*TriggerReply) Descriptor() ([]byte, []int)
func (*TriggerReply) Marshal ¶
func (m *TriggerReply) Marshal() (dAtA []byte, err error)
func (*TriggerReply) MarshalToSizedBuffer ¶
func (m *TriggerReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TriggerReply) ProtoMessage ¶
func (*TriggerReply) ProtoMessage()
func (*TriggerReply) Reset ¶
func (m *TriggerReply) Reset()
func (*TriggerReply) Size ¶
func (m *TriggerReply) Size() (n int)
func (*TriggerReply) String ¶
func (m *TriggerReply) String() string
func (*TriggerReply) Unmarshal ¶
func (m *TriggerReply) Unmarshal(dAtA []byte) error
func (*TriggerReply) XXX_DiscardUnknown ¶
func (m *TriggerReply) XXX_DiscardUnknown()
func (*TriggerReply) XXX_Marshal ¶
func (m *TriggerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TriggerReply) XXX_Merge ¶
func (m *TriggerReply) XXX_Merge(src proto.Message)
func (*TriggerReply) XXX_Size ¶
func (m *TriggerReply) XXX_Size() int
func (*TriggerReply) XXX_Unmarshal ¶
func (m *TriggerReply) XXX_Unmarshal(b []byte) error
type TriggerRequest ¶
type TriggerRequest struct { Event int32 `protobuf:"varint,1,opt,name=Event,proto3" json:"Event,omitempty"` GID string `protobuf:"bytes,2,opt,name=GID,proto3" json:"GID,omitempty"` CID int64 `protobuf:"varint,3,opt,name=CID,proto3" json:"CID,omitempty"` UID int64 `protobuf:"varint,4,opt,name=UID,proto3" json:"UID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TriggerRequest) Descriptor ¶
func (*TriggerRequest) Descriptor() ([]byte, []int)
func (*TriggerRequest) GetCID ¶
func (m *TriggerRequest) GetCID() int64
func (*TriggerRequest) GetEvent ¶
func (m *TriggerRequest) GetEvent() int32
func (*TriggerRequest) GetGID ¶
func (m *TriggerRequest) GetGID() string
func (*TriggerRequest) GetUID ¶
func (m *TriggerRequest) GetUID() int64
func (*TriggerRequest) Marshal ¶
func (m *TriggerRequest) Marshal() (dAtA []byte, err error)
func (*TriggerRequest) MarshalToSizedBuffer ¶
func (m *TriggerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TriggerRequest) ProtoMessage ¶
func (*TriggerRequest) ProtoMessage()
func (*TriggerRequest) Reset ¶
func (m *TriggerRequest) Reset()
func (*TriggerRequest) Size ¶
func (m *TriggerRequest) Size() (n int)
func (*TriggerRequest) String ¶
func (m *TriggerRequest) String() string
func (*TriggerRequest) Unmarshal ¶
func (m *TriggerRequest) Unmarshal(dAtA []byte) error
func (*TriggerRequest) XXX_DiscardUnknown ¶
func (m *TriggerRequest) XXX_DiscardUnknown()
func (*TriggerRequest) XXX_Marshal ¶
func (m *TriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TriggerRequest) XXX_Merge ¶
func (m *TriggerRequest) XXX_Merge(src proto.Message)
func (*TriggerRequest) XXX_Size ¶
func (m *TriggerRequest) XXX_Size() int
func (*TriggerRequest) XXX_Unmarshal ¶
func (m *TriggerRequest) XXX_Unmarshal(b []byte) error
type UnbindReply ¶
type UnbindReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnbindReply) Descriptor ¶
func (*UnbindReply) Descriptor() ([]byte, []int)
func (*UnbindReply) Marshal ¶
func (m *UnbindReply) Marshal() (dAtA []byte, err error)
func (*UnbindReply) MarshalToSizedBuffer ¶
func (m *UnbindReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbindReply) ProtoMessage ¶
func (*UnbindReply) ProtoMessage()
func (*UnbindReply) Reset ¶
func (m *UnbindReply) Reset()
func (*UnbindReply) Size ¶
func (m *UnbindReply) Size() (n int)
func (*UnbindReply) String ¶
func (m *UnbindReply) String() string
func (*UnbindReply) Unmarshal ¶
func (m *UnbindReply) Unmarshal(dAtA []byte) error
func (*UnbindReply) XXX_DiscardUnknown ¶
func (m *UnbindReply) XXX_DiscardUnknown()
func (*UnbindReply) XXX_Marshal ¶
func (m *UnbindReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbindReply) XXX_Merge ¶
func (m *UnbindReply) XXX_Merge(src proto.Message)
func (*UnbindReply) XXX_Size ¶
func (m *UnbindReply) XXX_Size() int
func (*UnbindReply) XXX_Unmarshal ¶
func (m *UnbindReply) XXX_Unmarshal(b []byte) error
type UnbindRequest ¶
type UnbindRequest struct { UID int64 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnbindRequest) Descriptor ¶
func (*UnbindRequest) Descriptor() ([]byte, []int)
func (*UnbindRequest) GetUID ¶
func (m *UnbindRequest) GetUID() int64
func (*UnbindRequest) Marshal ¶
func (m *UnbindRequest) Marshal() (dAtA []byte, err error)
func (*UnbindRequest) MarshalToSizedBuffer ¶
func (m *UnbindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbindRequest) ProtoMessage ¶
func (*UnbindRequest) ProtoMessage()
func (*UnbindRequest) Reset ¶
func (m *UnbindRequest) Reset()
func (*UnbindRequest) Size ¶
func (m *UnbindRequest) Size() (n int)
func (*UnbindRequest) String ¶
func (m *UnbindRequest) String() string
func (*UnbindRequest) Unmarshal ¶
func (m *UnbindRequest) Unmarshal(dAtA []byte) error
func (*UnbindRequest) XXX_DiscardUnknown ¶
func (m *UnbindRequest) XXX_DiscardUnknown()
func (*UnbindRequest) XXX_Marshal ¶
func (m *UnbindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbindRequest) XXX_Merge ¶
func (m *UnbindRequest) XXX_Merge(src proto.Message)
func (*UnbindRequest) XXX_Size ¶
func (m *UnbindRequest) XXX_Size() int
func (*UnbindRequest) XXX_Unmarshal ¶
func (m *UnbindRequest) XXX_Unmarshal(b []byte) error
type UnimplementedGateServer ¶
type UnimplementedGateServer struct { }
UnimplementedGateServer must be embedded to have forward compatible implementations.
func (UnimplementedGateServer) Bind ¶
func (UnimplementedGateServer) Bind(context.Context, *BindRequest) (*BindReply, error)
func (UnimplementedGateServer) Broadcast ¶
func (UnimplementedGateServer) Broadcast(context.Context, *BroadcastRequest) (*BroadcastReply, error)
func (UnimplementedGateServer) Disconnect ¶
func (UnimplementedGateServer) Disconnect(context.Context, *DisconnectRequest) (*DisconnectReply, error)
func (UnimplementedGateServer) GetIP ¶
func (UnimplementedGateServer) GetIP(context.Context, *GetIPRequest) (*GetIPReply, error)
func (UnimplementedGateServer) Multicast ¶
func (UnimplementedGateServer) Multicast(context.Context, *MulticastRequest) (*MulticastReply, error)
func (UnimplementedGateServer) Push ¶
func (UnimplementedGateServer) Push(context.Context, *PushRequest) (*PushReply, error)
func (UnimplementedGateServer) Unbind ¶
func (UnimplementedGateServer) Unbind(context.Context, *UnbindRequest) (*UnbindReply, error)
type UnimplementedNodeServer ¶
type UnimplementedNodeServer struct { }
UnimplementedNodeServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeServer) Deliver ¶
func (UnimplementedNodeServer) Deliver(context.Context, *DeliverRequest) (*DeliverReply, error)
func (UnimplementedNodeServer) Trigger ¶
func (UnimplementedNodeServer) Trigger(context.Context, *TriggerRequest) (*TriggerReply, error)
type UnsafeGateServer ¶
type UnsafeGateServer interface {
// contains filtered or unexported methods
}
UnsafeGateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GateServer will result in compilation errors.
type UnsafeNodeServer ¶
type UnsafeNodeServer interface {
// contains filtered or unexported methods
}
UnsafeNodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeServer will result in compilation errors.