Documentation ¶
Index ¶
- Constants
- Variables
- func AppendProcessor(rpcProcessor IRpcProcessor)
- func GetProcessorType(param interface{}) (RpcProcessorType, IRpcProcessor)
- func ReleaseCall(call *Call)
- func ReleaseRpcRequest(rpcRequest *RpcRequest)
- type AddRankList
- func (*AddRankList) Descriptor() ([]byte, []int)
- func (m *AddRankList) GetAddList() []*RankList
- func (m *AddRankList) Marshal() (dAtA []byte, err error)
- func (m *AddRankList) MarshalTo(dAtA []byte) (int, error)
- func (m *AddRankList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddRankList) ProtoMessage()
- func (m *AddRankList) Reset()
- func (m *AddRankList) Size() (n int)
- func (m *AddRankList) String() string
- func (m *AddRankList) Unmarshal(dAtA []byte) error
- func (m *AddRankList) XXX_DiscardUnknown()
- func (m *AddRankList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRankList) XXX_Merge(src proto.Message)
- func (m *AddRankList) XXX_Size() int
- func (m *AddRankList) XXX_Unmarshal(b []byte) error
- type Call
- type Client
- func (bc *Client) AddPending(call *Call)
- func (bc *Client) FindPending(seq uint64) *Call
- func (client *Client) GetClientId() uint32
- func (client *Client) GetNodeId() int
- func (client *Client) InitPending()
- func (client *Client) NewClientAgent(conn *network.TCPConn) network.Agent
- func (bc *Client) RemovePending(seq uint64) *Call
- type DBQueuePopReq
- func (*DBQueuePopReq) Descriptor() ([]byte, []int)
- func (m *DBQueuePopReq) GetCustomerId() string
- func (m *DBQueuePopReq) GetPopNum() int32
- func (m *DBQueuePopReq) GetPopStartPos() int32
- func (m *DBQueuePopReq) GetPushData() []byte
- func (m *DBQueuePopReq) GetQueueName() string
- func (m *DBQueuePopReq) Marshal() (dAtA []byte, err error)
- func (m *DBQueuePopReq) MarshalTo(dAtA []byte) (int, error)
- func (m *DBQueuePopReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DBQueuePopReq) ProtoMessage()
- func (m *DBQueuePopReq) Reset()
- func (m *DBQueuePopReq) Size() (n int)
- func (m *DBQueuePopReq) String() string
- func (m *DBQueuePopReq) Unmarshal(dAtA []byte) error
- func (m *DBQueuePopReq) XXX_DiscardUnknown()
- func (m *DBQueuePopReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DBQueuePopReq) XXX_Merge(src proto.Message)
- func (m *DBQueuePopReq) XXX_Size() int
- func (m *DBQueuePopReq) XXX_Unmarshal(b []byte) error
- type DBQueuePopRes
- func (*DBQueuePopRes) Descriptor() ([]byte, []int)
- func (m *DBQueuePopRes) GetPushData() [][]byte
- func (m *DBQueuePopRes) GetQueueName() string
- func (m *DBQueuePopRes) Marshal() (dAtA []byte, err error)
- func (m *DBQueuePopRes) MarshalTo(dAtA []byte) (int, error)
- func (m *DBQueuePopRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DBQueuePopRes) ProtoMessage()
- func (m *DBQueuePopRes) Reset()
- func (m *DBQueuePopRes) Size() (n int)
- func (m *DBQueuePopRes) String() string
- func (m *DBQueuePopRes) Unmarshal(dAtA []byte) error
- func (m *DBQueuePopRes) XXX_DiscardUnknown()
- func (m *DBQueuePopRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DBQueuePopRes) XXX_Merge(src proto.Message)
- func (m *DBQueuePopRes) XXX_Size() int
- func (m *DBQueuePopRes) XXX_Unmarshal(b []byte) error
- type DBQueuePublishReq
- func (*DBQueuePublishReq) Descriptor() ([]byte, []int)
- func (m *DBQueuePublishReq) GetPushData() [][]byte
- func (m *DBQueuePublishReq) GetTopicName() string
- func (m *DBQueuePublishReq) Marshal() (dAtA []byte, err error)
- func (m *DBQueuePublishReq) MarshalTo(dAtA []byte) (int, error)
- func (m *DBQueuePublishReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DBQueuePublishReq) ProtoMessage()
- func (m *DBQueuePublishReq) Reset()
- func (m *DBQueuePublishReq) Size() (n int)
- func (m *DBQueuePublishReq) String() string
- func (m *DBQueuePublishReq) Unmarshal(dAtA []byte) error
- func (m *DBQueuePublishReq) XXX_DiscardUnknown()
- func (m *DBQueuePublishReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DBQueuePublishReq) XXX_Merge(src proto.Message)
- func (m *DBQueuePublishReq) XXX_Size() int
- func (m *DBQueuePublishReq) XXX_Unmarshal(b []byte) error
- type DBQueuePublishRes
- func (*DBQueuePublishRes) Descriptor() ([]byte, []int)
- func (m *DBQueuePublishRes) Marshal() (dAtA []byte, err error)
- func (m *DBQueuePublishRes) MarshalTo(dAtA []byte) (int, error)
- func (m *DBQueuePublishRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DBQueuePublishRes) ProtoMessage()
- func (m *DBQueuePublishRes) Reset()
- func (m *DBQueuePublishRes) Size() (n int)
- func (m *DBQueuePublishRes) String() string
- func (m *DBQueuePublishRes) Unmarshal(dAtA []byte) error
- func (m *DBQueuePublishRes) XXX_DiscardUnknown()
- func (m *DBQueuePublishRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DBQueuePublishRes) XXX_Merge(src proto.Message)
- func (m *DBQueuePublishRes) XXX_Size() int
- func (m *DBQueuePublishRes) XXX_Unmarshal(b []byte) error
- type DBQueueSubscribeReq
- func (*DBQueueSubscribeReq) Descriptor() ([]byte, []int)
- func (m *DBQueueSubscribeReq) GetCustomerId() string
- func (m *DBQueueSubscribeReq) GetFromNodeId() int32
- func (m *DBQueueSubscribeReq) GetMethod() SubscribeMethod
- func (m *DBQueueSubscribeReq) GetOneBatchQuantity() int32
- func (m *DBQueueSubscribeReq) GetRpcMethod() string
- func (m *DBQueueSubscribeReq) GetStartIndex() uint64
- func (m *DBQueueSubscribeReq) GetSubType() SubscribeType
- func (m *DBQueueSubscribeReq) GetTopicName() string
- func (m *DBQueueSubscribeReq) Marshal() (dAtA []byte, err error)
- func (m *DBQueueSubscribeReq) MarshalTo(dAtA []byte) (int, error)
- func (m *DBQueueSubscribeReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DBQueueSubscribeReq) ProtoMessage()
- func (m *DBQueueSubscribeReq) Reset()
- func (m *DBQueueSubscribeReq) Size() (n int)
- func (m *DBQueueSubscribeReq) String() string
- func (m *DBQueueSubscribeReq) Unmarshal(dAtA []byte) error
- func (m *DBQueueSubscribeReq) XXX_DiscardUnknown()
- func (m *DBQueueSubscribeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DBQueueSubscribeReq) XXX_Merge(src proto.Message)
- func (m *DBQueueSubscribeReq) XXX_Size() int
- func (m *DBQueueSubscribeReq) XXX_Unmarshal(b []byte) error
- type DBQueueSubscribeRes
- func (*DBQueueSubscribeRes) Descriptor() ([]byte, []int)
- func (m *DBQueueSubscribeRes) Marshal() (dAtA []byte, err error)
- func (m *DBQueueSubscribeRes) MarshalTo(dAtA []byte) (int, error)
- func (m *DBQueueSubscribeRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DBQueueSubscribeRes) ProtoMessage()
- func (m *DBQueueSubscribeRes) Reset()
- func (m *DBQueueSubscribeRes) Size() (n int)
- func (m *DBQueueSubscribeRes) String() string
- func (m *DBQueueSubscribeRes) Unmarshal(dAtA []byte) error
- func (m *DBQueueSubscribeRes) XXX_DiscardUnknown()
- func (m *DBQueueSubscribeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DBQueueSubscribeRes) XXX_Merge(src proto.Message)
- func (m *DBQueueSubscribeRes) XXX_Size() int
- func (m *DBQueueSubscribeRes) XXX_Unmarshal(b []byte) error
- type DeleteByKey
- func (*DeleteByKey) Descriptor() ([]byte, []int)
- func (m *DeleteByKey) GetKeyList() []uint64
- func (m *DeleteByKey) GetRankId() uint64
- func (m *DeleteByKey) Marshal() (dAtA []byte, err error)
- func (m *DeleteByKey) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteByKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteByKey) ProtoMessage()
- func (m *DeleteByKey) Reset()
- func (m *DeleteByKey) Size() (n int)
- func (m *DeleteByKey) String() string
- func (m *DeleteByKey) Unmarshal(dAtA []byte) error
- func (m *DeleteByKey) XXX_DiscardUnknown()
- func (m *DeleteByKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteByKey) XXX_Merge(src proto.Message)
- func (m *DeleteByKey) XXX_Size() int
- func (m *DeleteByKey) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type ExtendIncData
- func (*ExtendIncData) Descriptor() ([]byte, []int)
- func (m *ExtendIncData) GetIncreaseValue() int64
- func (m *ExtendIncData) GetInitValue() int64
- func (m *ExtendIncData) Marshal() (dAtA []byte, err error)
- func (m *ExtendIncData) MarshalTo(dAtA []byte) (int, error)
- func (m *ExtendIncData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtendIncData) ProtoMessage()
- func (m *ExtendIncData) Reset()
- func (m *ExtendIncData) Size() (n int)
- func (m *ExtendIncData) String() string
- func (m *ExtendIncData) Unmarshal(dAtA []byte) error
- func (m *ExtendIncData) XXX_DiscardUnknown()
- func (m *ExtendIncData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtendIncData) XXX_Merge(src proto.Message)
- func (m *ExtendIncData) XXX_Size() int
- func (m *ExtendIncData) XXX_Unmarshal(b []byte) error
- type FindRankDataByKey
- func (*FindRankDataByKey) Descriptor() ([]byte, []int)
- func (m *FindRankDataByKey) GetKey() uint64
- func (m *FindRankDataByKey) GetRankId() uint64
- func (m *FindRankDataByKey) Marshal() (dAtA []byte, err error)
- func (m *FindRankDataByKey) MarshalTo(dAtA []byte) (int, error)
- func (m *FindRankDataByKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FindRankDataByKey) ProtoMessage()
- func (m *FindRankDataByKey) Reset()
- func (m *FindRankDataByKey) Size() (n int)
- func (m *FindRankDataByKey) String() string
- func (m *FindRankDataByKey) Unmarshal(dAtA []byte) error
- func (m *FindRankDataByKey) XXX_DiscardUnknown()
- func (m *FindRankDataByKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindRankDataByKey) XXX_Merge(src proto.Message)
- func (m *FindRankDataByKey) XXX_Size() int
- func (m *FindRankDataByKey) XXX_Unmarshal(b []byte) error
- type FindRankDataByRank
- func (*FindRankDataByRank) Descriptor() ([]byte, []int)
- func (m *FindRankDataByRank) GetRank() uint64
- func (m *FindRankDataByRank) GetRankId() uint64
- func (m *FindRankDataByRank) Marshal() (dAtA []byte, err error)
- func (m *FindRankDataByRank) MarshalTo(dAtA []byte) (int, error)
- func (m *FindRankDataByRank) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FindRankDataByRank) ProtoMessage()
- func (m *FindRankDataByRank) Reset()
- func (m *FindRankDataByRank) Size() (n int)
- func (m *FindRankDataByRank) String() string
- func (m *FindRankDataByRank) Unmarshal(dAtA []byte) error
- func (m *FindRankDataByRank) XXX_DiscardUnknown()
- func (m *FindRankDataByRank) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindRankDataByRank) XXX_Merge(src proto.Message)
- func (m *FindRankDataByRank) XXX_Size() int
- func (m *FindRankDataByRank) XXX_Unmarshal(b []byte) error
- type FindRankDataList
- func (*FindRankDataList) Descriptor() ([]byte, []int)
- func (m *FindRankDataList) GetCount() uint64
- func (m *FindRankDataList) GetKey() uint64
- func (m *FindRankDataList) GetRankId() uint64
- func (m *FindRankDataList) GetStartRank() uint64
- func (m *FindRankDataList) Marshal() (dAtA []byte, err error)
- func (m *FindRankDataList) MarshalTo(dAtA []byte) (int, error)
- func (m *FindRankDataList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FindRankDataList) ProtoMessage()
- func (m *FindRankDataList) Reset()
- func (m *FindRankDataList) Size() (n int)
- func (m *FindRankDataList) String() string
- func (m *FindRankDataList) Unmarshal(dAtA []byte) error
- func (m *FindRankDataList) XXX_DiscardUnknown()
- func (m *FindRankDataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindRankDataList) XXX_Merge(src proto.Message)
- func (m *FindRankDataList) XXX_Size() int
- func (m *FindRankDataList) XXX_Unmarshal(b []byte) error
- type FuncRpcClient
- type FuncRpcServer
- type GoGoPBProcessor
- func (slf *GoGoPBProcessor) Clone(src interface{}) (interface{}, error)
- func (slf *GoGoPBProcessor) GetProcessorType() RpcProcessorType
- func (slf *GoGoPBProcessor) IsParse(param interface{}) bool
- func (slf *GoGoPBProcessor) MakeRpcRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, ...) IRpcRequestData
- func (slf *GoGoPBProcessor) MakeRpcResponse(seq uint64, err RpcError, reply []byte) IRpcResponseData
- func (slf *GoGoPBProcessor) Marshal(v interface{}) ([]byte, error)
- func (slf *GoGoPBProcessor) ReleaseRpcRequest(rpcRequestData IRpcRequestData)
- func (slf *GoGoPBProcessor) ReleaseRpcResponse(rpcResponseData IRpcResponseData)
- func (slf *GoGoPBProcessor) Unmarshal(data []byte, msg interface{}) error
- type GoGoPBRpcRequestData
- func (*GoGoPBRpcRequestData) Descriptor() ([]byte, []int)
- func (m *GoGoPBRpcRequestData) GetInParam() []byte
- func (m *GoGoPBRpcRequestData) GetNoReply() bool
- func (m *GoGoPBRpcRequestData) GetRpcMethodId() uint32
- func (m *GoGoPBRpcRequestData) GetSeq() uint64
- func (m *GoGoPBRpcRequestData) GetServiceMethod() string
- func (slf *GoGoPBRpcRequestData) IsNoReply() bool
- func (slf *GoGoPBRpcRequestData) MakeRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, ...) *GoGoPBRpcRequestData
- func (m *GoGoPBRpcRequestData) Marshal() (dAtA []byte, err error)
- func (m *GoGoPBRpcRequestData) MarshalTo(dAtA []byte) (int, error)
- func (m *GoGoPBRpcRequestData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GoGoPBRpcRequestData) ProtoMessage()
- func (m *GoGoPBRpcRequestData) Reset()
- func (m *GoGoPBRpcRequestData) Size() (n int)
- func (m *GoGoPBRpcRequestData) String() string
- func (m *GoGoPBRpcRequestData) Unmarshal(dAtA []byte) error
- func (m *GoGoPBRpcRequestData) XXX_DiscardUnknown()
- func (m *GoGoPBRpcRequestData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GoGoPBRpcRequestData) XXX_Merge(src proto.Message)
- func (m *GoGoPBRpcRequestData) XXX_Size() int
- func (m *GoGoPBRpcRequestData) XXX_Unmarshal(b []byte) error
- type GoGoPBRpcResponseData
- func (*GoGoPBRpcResponseData) Descriptor() ([]byte, []int)
- func (slf *GoGoPBRpcResponseData) GetErr() *RpcError
- func (m *GoGoPBRpcResponseData) GetError() string
- func (m *GoGoPBRpcResponseData) GetReply() []byte
- func (m *GoGoPBRpcResponseData) GetSeq() uint64
- func (slf *GoGoPBRpcResponseData) MakeRespone(seq uint64, err RpcError, reply []byte) *GoGoPBRpcResponseData
- func (m *GoGoPBRpcResponseData) Marshal() (dAtA []byte, err error)
- func (m *GoGoPBRpcResponseData) MarshalTo(dAtA []byte) (int, error)
- func (m *GoGoPBRpcResponseData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GoGoPBRpcResponseData) ProtoMessage()
- func (m *GoGoPBRpcResponseData) Reset()
- func (m *GoGoPBRpcResponseData) Size() (n int)
- func (m *GoGoPBRpcResponseData) String() string
- func (m *GoGoPBRpcResponseData) Unmarshal(dAtA []byte) error
- func (m *GoGoPBRpcResponseData) XXX_DiscardUnknown()
- func (m *GoGoPBRpcResponseData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GoGoPBRpcResponseData) XXX_Merge(src proto.Message)
- func (m *GoGoPBRpcResponseData) XXX_Size() int
- func (m *GoGoPBRpcResponseData) XXX_Unmarshal(b []byte) error
- type IDiscoveryServiceListener
- type INodeListener
- type IRealClient
- type IRpcHandler
- type IRpcHandlerChannel
- type IRpcProcessor
- type IRpcRequestData
- type IRpcResponseData
- type IncreaseRankData
- func (*IncreaseRankData) Descriptor() ([]byte, []int)
- func (m *IncreaseRankData) GetExtend() []*ExtendIncData
- func (m *IncreaseRankData) GetIncreaseSortData() []int64
- func (m *IncreaseRankData) GetInitData() []byte
- func (m *IncreaseRankData) GetInitSortData() []int64
- func (m *IncreaseRankData) GetInsertDataOnNonExistent() bool
- func (m *IncreaseRankData) GetKey() uint64
- func (m *IncreaseRankData) GetRankId() uint64
- func (m *IncreaseRankData) GetReturnRankData() bool
- func (m *IncreaseRankData) GetSetSortAndExtendData() []*SetSortAndExtendData
- func (m *IncreaseRankData) Marshal() (dAtA []byte, err error)
- func (m *IncreaseRankData) MarshalTo(dAtA []byte) (int, error)
- func (m *IncreaseRankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IncreaseRankData) ProtoMessage()
- func (m *IncreaseRankData) Reset()
- func (m *IncreaseRankData) Size() (n int)
- func (m *IncreaseRankData) String() string
- func (m *IncreaseRankData) Unmarshal(dAtA []byte) error
- func (m *IncreaseRankData) XXX_DiscardUnknown()
- func (m *IncreaseRankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IncreaseRankData) XXX_Merge(src proto.Message)
- func (m *IncreaseRankData) XXX_Size() int
- func (m *IncreaseRankData) XXX_Unmarshal(b []byte) error
- type IncreaseRankDataRet
- func (*IncreaseRankDataRet) Descriptor() ([]byte, []int)
- func (m *IncreaseRankDataRet) GetPosData() *RankPosData
- func (m *IncreaseRankDataRet) Marshal() (dAtA []byte, err error)
- func (m *IncreaseRankDataRet) MarshalTo(dAtA []byte) (int, error)
- func (m *IncreaseRankDataRet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IncreaseRankDataRet) ProtoMessage()
- func (m *IncreaseRankDataRet) Reset()
- func (m *IncreaseRankDataRet) Size() (n int)
- func (m *IncreaseRankDataRet) String() string
- func (m *IncreaseRankDataRet) Unmarshal(dAtA []byte) error
- func (m *IncreaseRankDataRet) XXX_DiscardUnknown()
- func (m *IncreaseRankDataRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IncreaseRankDataRet) XXX_Merge(src proto.Message)
- func (m *IncreaseRankDataRet) XXX_Size() int
- func (m *IncreaseRankDataRet) XXX_Unmarshal(b []byte) error
- type JsonProcessor
- func (jsonProcessor *JsonProcessor) Clone(src interface{}) (interface{}, error)
- func (jsonProcessor *JsonProcessor) GetProcessorType() RpcProcessorType
- func (jsonProcessor *JsonProcessor) IsParse(param interface{}) bool
- func (jsonProcessor *JsonProcessor) MakeRpcRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, ...) IRpcRequestData
- func (jsonProcessor *JsonProcessor) MakeRpcResponse(seq uint64, err RpcError, reply []byte) IRpcResponseData
- func (jsonProcessor *JsonProcessor) Marshal(v interface{}) ([]byte, error)
- func (jsonProcessor *JsonProcessor) ReleaseRpcRequest(rpcRequestData IRpcRequestData)
- func (jsonProcessor *JsonProcessor) ReleaseRpcResponse(rpcResponseData IRpcResponseData)
- func (jsonProcessor *JsonProcessor) Unmarshal(data []byte, v interface{}) error
- type JsonRpcRequestData
- func (jsonRpcRequestData *JsonRpcRequestData) GetInParam() []byte
- func (jsonRpcRequestData *JsonRpcRequestData) GetRpcMethodId() uint32
- func (jsonRpcRequestData *JsonRpcRequestData) GetSeq() uint64
- func (jsonRpcRequestData *JsonRpcRequestData) GetServiceMethod() string
- func (jsonRpcRequestData *JsonRpcRequestData) IsNoReply() bool
- type JsonRpcResponseData
- type LClient
- func (lc *LClient) AsyncCall(rpcHandler IRpcHandler, serviceMethod string, callback reflect.Value, ...) error
- func (lc *LClient) Close(waitDone bool)
- func (lc *LClient) Go(rpcHandler IRpcHandler, noReply bool, serviceMethod string, args interface{}, ...) *Call
- func (lc *LClient) IsConnected() bool
- func (rc *LClient) Lock()
- func (lc *LClient) OnClose()
- func (rc *LClient) RawGo(rpcHandler IRpcHandler, processor IRpcProcessor, noReply bool, ...) *Call
- func (lc *LClient) Run()
- func (lc *LClient) SetConn(conn *network.TCPConn)
- func (rc *LClient) Unlock()
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)
- func (m *NodeInfo) GetListenAddr() string
- func (m *NodeInfo) GetMaxRpcParamLen() uint32
- func (m *NodeInfo) GetNodeId() int32
- func (m *NodeInfo) GetNodeName() string
- func (m *NodeInfo) GetPrivate() bool
- func (m *NodeInfo) GetPublicServiceList() []string
- func (m *NodeInfo) Marshal() (dAtA []byte, err error)
- func (m *NodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *NodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodeInfo) ProtoMessage()
- func (m *NodeInfo) Reset()
- func (m *NodeInfo) Size() (n int)
- func (m *NodeInfo) String() string
- func (m *NodeInfo) Unmarshal(dAtA []byte) error
- func (m *NodeInfo) XXX_DiscardUnknown()
- func (m *NodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeInfo) XXX_Merge(src proto.Message)
- func (m *NodeInfo) XXX_Size() int
- func (m *NodeInfo) XXX_Unmarshal(b []byte) error
- type RClient
- func (rc *RClient) AsyncCall(rpcHandler IRpcHandler, serviceMethod string, callback reflect.Value, ...) error
- func (rc *RClient) Close(waitDone bool)
- func (rc *RClient) GetConn() *network.TCPConn
- func (rc *RClient) Go(rpcHandler IRpcHandler, noReply bool, serviceMethod string, args interface{}, ...) *Call
- func (rc *RClient) IsConnected() bool
- func (rc *RClient) OnClose()
- func (rc *RClient) RawGo(rpcHandler IRpcHandler, processor IRpcProcessor, noReply bool, ...) *Call
- func (rc *RClient) Run()
- func (rc *RClient) SetConn(conn *network.TCPConn)
- type RankData
- func (*RankData) Descriptor() ([]byte, []int)
- func (m *RankData) GetData() []byte
- func (m *RankData) GetExData() []*ExtendIncData
- func (m *RankData) GetKey() uint64
- func (m *RankData) GetSortData() []int64
- func (m *RankData) Marshal() (dAtA []byte, err error)
- func (m *RankData) MarshalTo(dAtA []byte) (int, error)
- func (m *RankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RankData) ProtoMessage()
- func (m *RankData) Reset()
- func (m *RankData) Size() (n int)
- func (m *RankData) String() string
- func (m *RankData) Unmarshal(dAtA []byte) error
- func (m *RankData) XXX_DiscardUnknown()
- func (m *RankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RankData) XXX_Merge(src proto.Message)
- func (m *RankData) XXX_Size() int
- func (m *RankData) XXX_Unmarshal(b []byte) error
- type RankDataList
- func (*RankDataList) Descriptor() ([]byte, []int)
- func (m *RankDataList) GetKeyRank() *RankPosData
- func (m *RankDataList) GetRankDataCount() uint64
- func (m *RankDataList) GetRankPosDataList() []*RankPosData
- func (m *RankDataList) Marshal() (dAtA []byte, err error)
- func (m *RankDataList) MarshalTo(dAtA []byte) (int, error)
- func (m *RankDataList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RankDataList) ProtoMessage()
- func (m *RankDataList) Reset()
- func (m *RankDataList) Size() (n int)
- func (m *RankDataList) String() string
- func (m *RankDataList) Unmarshal(dAtA []byte) error
- func (m *RankDataList) XXX_DiscardUnknown()
- func (m *RankDataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RankDataList) XXX_Merge(src proto.Message)
- func (m *RankDataList) XXX_Size() int
- func (m *RankDataList) XXX_Unmarshal(b []byte) error
- type RankInfo
- func (*RankInfo) Descriptor() ([]byte, []int)
- func (m *RankInfo) GetKey() uint64
- func (m *RankInfo) GetRank() uint64
- func (m *RankInfo) Marshal() (dAtA []byte, err error)
- func (m *RankInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RankInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RankInfo) ProtoMessage()
- func (m *RankInfo) Reset()
- func (m *RankInfo) Size() (n int)
- func (m *RankInfo) String() string
- func (m *RankInfo) Unmarshal(dAtA []byte) error
- func (m *RankInfo) XXX_DiscardUnknown()
- func (m *RankInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RankInfo) XXX_Merge(src proto.Message)
- func (m *RankInfo) XXX_Size() int
- func (m *RankInfo) XXX_Unmarshal(b []byte) error
- type RankList
- func (*RankList) Descriptor() ([]byte, []int)
- func (m *RankList) GetExpireMs() int64
- func (m *RankList) GetIsDec() bool
- func (m *RankList) GetMaxRank() uint64
- func (m *RankList) GetRankId() uint64
- func (m *RankList) GetRankName() string
- func (m *RankList) GetSkipListLevel() int32
- func (m *RankList) Marshal() (dAtA []byte, err error)
- func (m *RankList) MarshalTo(dAtA []byte) (int, error)
- func (m *RankList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RankList) ProtoMessage()
- func (m *RankList) Reset()
- func (m *RankList) Size() (n int)
- func (m *RankList) String() string
- func (m *RankList) Unmarshal(dAtA []byte) error
- func (m *RankList) XXX_DiscardUnknown()
- func (m *RankList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RankList) XXX_Merge(src proto.Message)
- func (m *RankList) XXX_Size() int
- func (m *RankList) XXX_Unmarshal(b []byte) error
- type RankPosData
- func (*RankPosData) Descriptor() ([]byte, []int)
- func (m *RankPosData) GetData() []byte
- func (m *RankPosData) GetExtendData() []int64
- func (m *RankPosData) GetKey() uint64
- func (m *RankPosData) GetRank() uint64
- func (m *RankPosData) GetSortData() []int64
- func (m *RankPosData) Marshal() (dAtA []byte, err error)
- func (m *RankPosData) MarshalTo(dAtA []byte) (int, error)
- func (m *RankPosData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RankPosData) ProtoMessage()
- func (m *RankPosData) Reset()
- func (m *RankPosData) Size() (n int)
- func (m *RankPosData) String() string
- func (m *RankPosData) Unmarshal(dAtA []byte) error
- func (m *RankPosData) XXX_DiscardUnknown()
- func (m *RankPosData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RankPosData) XXX_Merge(src proto.Message)
- func (m *RankPosData) XXX_Size() int
- func (m *RankPosData) XXX_Unmarshal(b []byte) error
- type RankResult
- func (*RankResult) Descriptor() ([]byte, []int)
- func (m *RankResult) GetAddCount() int32
- func (m *RankResult) GetModifyCount() int32
- func (m *RankResult) GetNewRank() []*RankInfo
- func (m *RankResult) GetRemoveCount() int32
- func (m *RankResult) Marshal() (dAtA []byte, err error)
- func (m *RankResult) MarshalTo(dAtA []byte) (int, error)
- func (m *RankResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RankResult) ProtoMessage()
- func (m *RankResult) Reset()
- func (m *RankResult) Size() (n int)
- func (m *RankResult) String() string
- func (m *RankResult) Unmarshal(dAtA []byte) error
- func (m *RankResult) XXX_DiscardUnknown()
- func (m *RankResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RankResult) XXX_Merge(src proto.Message)
- func (m *RankResult) XXX_Size() int
- func (m *RankResult) XXX_Unmarshal(b []byte) error
- type RawRpcCallBack
- type RequestHandler
- type Responder
- type RpcAgent
- func (agent *RpcAgent) Close()
- func (agent *RpcAgent) Destroy()
- func (agent *RpcAgent) LocalAddr() net.Addr
- func (agent *RpcAgent) OnClose()
- func (agent *RpcAgent) OnDestroy()
- func (agent *RpcAgent) RemoteAddr() net.Addr
- func (agent *RpcAgent) Run()
- func (agent *RpcAgent) WriteMsg(msg interface{})
- func (agent *RpcAgent) WriteResponse(processor IRpcProcessor, serviceMethod string, seq uint64, reply interface{}, ...)
- type RpcError
- type RpcHandleFinder
- type RpcHandler
- func (handler *RpcHandler) AsyncCall(serviceMethod string, args interface{}, callback interface{}) error
- func (handler *RpcHandler) AsyncCallNode(nodeId int, serviceMethod string, args interface{}, callback interface{}) error
- func (handler *RpcHandler) Call(serviceMethod string, args interface{}, reply interface{}) error
- func (handler *RpcHandler) CallMethod(client *Client, ServiceMethod string, param interface{}, ...) error
- func (handler *RpcHandler) CallNode(nodeId int, serviceMethod string, args interface{}, reply interface{}) error
- func (handler *RpcHandler) CastGo(serviceMethod string, args interface{}) error
- func (handler *RpcHandler) GetName() string
- func (handler *RpcHandler) GetRpcHandler() IRpcHandler
- func (handler *RpcHandler) GetRpcServer() FuncRpcServer
- func (handler *RpcHandler) Go(serviceMethod string, args interface{}) error
- func (handler *RpcHandler) GoNode(nodeId int, serviceMethod string, args interface{}) error
- func (handler *RpcHandler) HandlerRpcRequest(request *RpcRequest)
- func (handler *RpcHandler) HandlerRpcResponseCB(call *Call)
- func (handler *RpcHandler) InitRpcHandler(rpcHandler IRpcHandler, getClientFun FuncRpcClient, getServerFun FuncRpcServer, ...)
- func (handler *RpcHandler) IsSingleCoroutine() bool
- func (handler *RpcHandler) RawGoNode(rpcProcessorType RpcProcessorType, nodeId int, rpcMethodId uint32, ...) error
- func (handler *RpcHandler) RegRawRpc(rpcMethodId uint32, rawRpcCB RawRpcCallBack)
- func (handler *RpcHandler) RegisterRpc(rpcHandler IRpcHandler) error
- func (handler *RpcHandler) UnmarshalInParam(rpcProcessor IRpcProcessor, serviceMethod string, rawRpcMethodId uint32, ...) (interface{}, error)
- type RpcMethodInfo
- type RpcProcessorType
- type RpcRequest
- type RpcResponse
- type Server
- type ServiceDiscoverReq
- func (*ServiceDiscoverReq) Descriptor() ([]byte, []int)
- func (m *ServiceDiscoverReq) GetNodeInfo() *NodeInfo
- func (m *ServiceDiscoverReq) Marshal() (dAtA []byte, err error)
- func (m *ServiceDiscoverReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ServiceDiscoverReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ServiceDiscoverReq) ProtoMessage()
- func (m *ServiceDiscoverReq) Reset()
- func (m *ServiceDiscoverReq) Size() (n int)
- func (m *ServiceDiscoverReq) String() string
- func (m *ServiceDiscoverReq) Unmarshal(dAtA []byte) error
- func (m *ServiceDiscoverReq) XXX_DiscardUnknown()
- func (m *ServiceDiscoverReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServiceDiscoverReq) XXX_Merge(src proto.Message)
- func (m *ServiceDiscoverReq) XXX_Size() int
- func (m *ServiceDiscoverReq) XXX_Unmarshal(b []byte) error
- type SetSortAndExtendData
- func (*SetSortAndExtendData) Descriptor() ([]byte, []int)
- func (m *SetSortAndExtendData) GetData() int64
- func (m *SetSortAndExtendData) GetIsSortData() bool
- func (m *SetSortAndExtendData) GetPos() int32
- func (m *SetSortAndExtendData) Marshal() (dAtA []byte, err error)
- func (m *SetSortAndExtendData) MarshalTo(dAtA []byte) (int, error)
- func (m *SetSortAndExtendData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetSortAndExtendData) ProtoMessage()
- func (m *SetSortAndExtendData) Reset()
- func (m *SetSortAndExtendData) Size() (n int)
- func (m *SetSortAndExtendData) String() string
- func (m *SetSortAndExtendData) Unmarshal(dAtA []byte) error
- func (m *SetSortAndExtendData) XXX_DiscardUnknown()
- func (m *SetSortAndExtendData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetSortAndExtendData) XXX_Merge(src proto.Message)
- func (m *SetSortAndExtendData) XXX_Size() int
- func (m *SetSortAndExtendData) XXX_Unmarshal(b []byte) error
- type SubscribeDiscoverNotify
- func (*SubscribeDiscoverNotify) Descriptor() ([]byte, []int)
- func (m *SubscribeDiscoverNotify) GetDelNodeId() int32
- func (m *SubscribeDiscoverNotify) GetIsFull() bool
- func (m *SubscribeDiscoverNotify) GetMasterNodeId() int32
- func (m *SubscribeDiscoverNotify) GetNodeInfo() []*NodeInfo
- func (m *SubscribeDiscoverNotify) Marshal() (dAtA []byte, err error)
- func (m *SubscribeDiscoverNotify) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscribeDiscoverNotify) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscribeDiscoverNotify) ProtoMessage()
- func (m *SubscribeDiscoverNotify) Reset()
- func (m *SubscribeDiscoverNotify) Size() (n int)
- func (m *SubscribeDiscoverNotify) String() string
- func (m *SubscribeDiscoverNotify) Unmarshal(dAtA []byte) error
- func (m *SubscribeDiscoverNotify) XXX_DiscardUnknown()
- func (m *SubscribeDiscoverNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeDiscoverNotify) XXX_Merge(src proto.Message)
- func (m *SubscribeDiscoverNotify) XXX_Size() int
- func (m *SubscribeDiscoverNotify) XXX_Unmarshal(b []byte) error
- type SubscribeMethod
- type SubscribeType
- type TriggerRpcConnEvent
- type UpdateRankData
- func (*UpdateRankData) Descriptor() ([]byte, []int)
- func (m *UpdateRankData) GetData() []byte
- func (m *UpdateRankData) GetKey() uint64
- func (m *UpdateRankData) GetRankId() uint64
- func (m *UpdateRankData) Marshal() (dAtA []byte, err error)
- func (m *UpdateRankData) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateRankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateRankData) ProtoMessage()
- func (m *UpdateRankData) Reset()
- func (m *UpdateRankData) Size() (n int)
- func (m *UpdateRankData) String() string
- func (m *UpdateRankData) Unmarshal(dAtA []byte) error
- func (m *UpdateRankData) XXX_DiscardUnknown()
- func (m *UpdateRankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRankData) XXX_Merge(src proto.Message)
- func (m *UpdateRankData) XXX_Size() int
- func (m *UpdateRankData) XXX_Unmarshal(b []byte) error
- type UpdateRankDataRet
- func (*UpdateRankDataRet) Descriptor() ([]byte, []int)
- func (m *UpdateRankDataRet) GetRet() bool
- func (m *UpdateRankDataRet) Marshal() (dAtA []byte, err error)
- func (m *UpdateRankDataRet) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateRankDataRet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateRankDataRet) ProtoMessage()
- func (m *UpdateRankDataRet) Reset()
- func (m *UpdateRankDataRet) Size() (n int)
- func (m *UpdateRankDataRet) String() string
- func (m *UpdateRankDataRet) Unmarshal(dAtA []byte) error
- func (m *UpdateRankDataRet) XXX_DiscardUnknown()
- func (m *UpdateRankDataRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRankDataRet) XXX_Merge(src proto.Message)
- func (m *UpdateRankDataRet) XXX_Size() int
- func (m *UpdateRankDataRet) XXX_Unmarshal(b []byte) error
- type UpsetRankData
- func (*UpsetRankData) Descriptor() ([]byte, []int)
- func (m *UpsetRankData) GetFindNewRank() bool
- func (m *UpsetRankData) GetRankDataList() []*RankData
- func (m *UpsetRankData) GetRankId() uint64
- func (m *UpsetRankData) Marshal() (dAtA []byte, err error)
- func (m *UpsetRankData) MarshalTo(dAtA []byte) (int, error)
- func (m *UpsetRankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpsetRankData) ProtoMessage()
- func (m *UpsetRankData) Reset()
- func (m *UpsetRankData) Size() (n int)
- func (m *UpsetRankData) String() string
- func (m *UpsetRankData) Unmarshal(dAtA []byte) error
- func (m *UpsetRankData) XXX_DiscardUnknown()
- func (m *UpsetRankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpsetRankData) XXX_Merge(src proto.Message)
- func (m *UpsetRankData) XXX_Size() int
- func (m *UpsetRankData) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( DefaultRpcConnNum = 1 DefaultRpcLenMsgLen = 4 DefaultRpcMinMsgLen = 2 DefaultMaxCheckCallRpcCount = 1000 DefaultMaxPendingWriteNum = 200000 DefaultConnectInterval = 2 * time.Second DefaultCheckRpcCallTimeoutInterval = 5 * time.Second DefaultRpcTimeout = 15 * time.Second )
View Source
const Default_ReadWriteDeadline = 15 * time.Second
Variables ¶
View Source
var ( ErrInvalidLengthDynamicdiscover = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDynamicdiscover = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDynamicdiscover = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthGogorpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGogorpc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGogorpc = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthMessagequeue = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessagequeue = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessagequeue = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthRank = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRank = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRank = fmt.Errorf("proto: unexpected end of group") )
View Source
var LittleEndian bool
View Source
var SubscribeMethod_name = map[int32]string{
0: "Method_Custom",
1: "Method_Last",
}
View Source
var SubscribeMethod_value = map[string]int32{
"Method_Custom": 0,
"Method_Last": 1,
}
View Source
var SubscribeType_name = map[int32]string{
0: "Subscribe",
1: "Unsubscribe",
}
View Source
var SubscribeType_value = map[string]int32{
"Subscribe": 0,
"Unsubscribe": 1,
}
Functions ¶
func AppendProcessor ¶
func AppendProcessor(rpcProcessor IRpcProcessor)
func GetProcessorType ¶
func GetProcessorType(param interface{}) (RpcProcessorType, IRpcProcessor)
func ReleaseCall ¶
func ReleaseCall(call *Call)
func ReleaseRpcRequest ¶
func ReleaseRpcRequest(rpcRequest *RpcRequest)
Types ¶
type AddRankList ¶ added in v1.19.0
type AddRankList struct { AddList []*RankList `protobuf:"bytes,1,rep,name=AddList,proto3" json:"AddList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AddRankList 新增排行榜
func (*AddRankList) Descriptor ¶ added in v1.19.0
func (*AddRankList) Descriptor() ([]byte, []int)
func (*AddRankList) GetAddList ¶ added in v1.19.0
func (m *AddRankList) GetAddList() []*RankList
func (*AddRankList) Marshal ¶ added in v1.19.0
func (m *AddRankList) Marshal() (dAtA []byte, err error)
func (*AddRankList) MarshalTo ¶ added in v1.19.0
func (m *AddRankList) MarshalTo(dAtA []byte) (int, error)
func (*AddRankList) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *AddRankList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddRankList) ProtoMessage ¶ added in v1.19.0
func (*AddRankList) ProtoMessage()
func (*AddRankList) Reset ¶ added in v1.19.0
func (m *AddRankList) Reset()
func (*AddRankList) Size ¶ added in v1.19.0
func (m *AddRankList) Size() (n int)
func (*AddRankList) String ¶ added in v1.19.0
func (m *AddRankList) String() string
func (*AddRankList) Unmarshal ¶ added in v1.19.0
func (m *AddRankList) Unmarshal(dAtA []byte) error
func (*AddRankList) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *AddRankList) XXX_DiscardUnknown()
func (*AddRankList) XXX_Marshal ¶ added in v1.19.0
func (m *AddRankList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddRankList) XXX_Merge ¶ added in v1.19.0
func (m *AddRankList) XXX_Merge(src proto.Message)
func (*AddRankList) XXX_Size ¶ added in v1.19.0
func (m *AddRankList) XXX_Size() int
func (*AddRankList) XXX_Unmarshal ¶ added in v1.19.0
func (m *AddRankList) XXX_Unmarshal(b []byte) error
type Call ¶
type Call struct { Seq uint64 ServiceMethod string Reply interface{} Response *RpcResponse Err error // contains filtered or unexported fields }
type Client ¶
type Client struct { IRealClient // contains filtered or unexported fields }
func NewLClient ¶ added in v1.19.3
func NewRClient ¶ added in v1.19.3
func NewRClient(nodeId int, addr string, maxRpcParamLen uint32, triggerRpcConnEvent TriggerRpcConnEvent) *Client
func (*Client) AddPending ¶
func (*Client) FindPending ¶
func (*Client) GetClientId ¶ added in v1.19.3
func (*Client) InitPending ¶ added in v1.19.3
func (client *Client) InitPending()
func (*Client) NewClientAgent ¶
func (*Client) RemovePending ¶
type DBQueuePopReq ¶ added in v1.19.0
type DBQueuePopReq struct { CustomerId string `protobuf:"bytes,1,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"` QueueName string `protobuf:"bytes,2,opt,name=QueueName,proto3" json:"QueueName,omitempty"` PopStartPos int32 `protobuf:"varint,3,opt,name=PopStartPos,proto3" json:"PopStartPos,omitempty"` PopNum int32 `protobuf:"varint,4,opt,name=PopNum,proto3" json:"PopNum,omitempty"` PushData []byte `protobuf:"bytes,5,opt,name=pushData,proto3" json:"pushData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DBQueuePopReq) Descriptor ¶ added in v1.19.0
func (*DBQueuePopReq) Descriptor() ([]byte, []int)
func (*DBQueuePopReq) GetCustomerId ¶ added in v1.19.0
func (m *DBQueuePopReq) GetCustomerId() string
func (*DBQueuePopReq) GetPopNum ¶ added in v1.19.0
func (m *DBQueuePopReq) GetPopNum() int32
func (*DBQueuePopReq) GetPopStartPos ¶ added in v1.19.0
func (m *DBQueuePopReq) GetPopStartPos() int32
func (*DBQueuePopReq) GetPushData ¶ added in v1.19.0
func (m *DBQueuePopReq) GetPushData() []byte
func (*DBQueuePopReq) GetQueueName ¶ added in v1.19.0
func (m *DBQueuePopReq) GetQueueName() string
func (*DBQueuePopReq) Marshal ¶ added in v1.19.0
func (m *DBQueuePopReq) Marshal() (dAtA []byte, err error)
func (*DBQueuePopReq) MarshalTo ¶ added in v1.19.0
func (m *DBQueuePopReq) MarshalTo(dAtA []byte) (int, error)
func (*DBQueuePopReq) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DBQueuePopReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DBQueuePopReq) ProtoMessage ¶ added in v1.19.0
func (*DBQueuePopReq) ProtoMessage()
func (*DBQueuePopReq) Reset ¶ added in v1.19.0
func (m *DBQueuePopReq) Reset()
func (*DBQueuePopReq) Size ¶ added in v1.19.0
func (m *DBQueuePopReq) Size() (n int)
func (*DBQueuePopReq) String ¶ added in v1.19.0
func (m *DBQueuePopReq) String() string
func (*DBQueuePopReq) Unmarshal ¶ added in v1.19.0
func (m *DBQueuePopReq) Unmarshal(dAtA []byte) error
func (*DBQueuePopReq) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DBQueuePopReq) XXX_DiscardUnknown()
func (*DBQueuePopReq) XXX_Marshal ¶ added in v1.19.0
func (m *DBQueuePopReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBQueuePopReq) XXX_Merge ¶ added in v1.19.0
func (m *DBQueuePopReq) XXX_Merge(src proto.Message)
func (*DBQueuePopReq) XXX_Size ¶ added in v1.19.0
func (m *DBQueuePopReq) XXX_Size() int
func (*DBQueuePopReq) XXX_Unmarshal ¶ added in v1.19.0
func (m *DBQueuePopReq) XXX_Unmarshal(b []byte) error
type DBQueuePopRes ¶ added in v1.19.0
type DBQueuePopRes struct { QueueName string `protobuf:"bytes,1,opt,name=QueueName,proto3" json:"QueueName,omitempty"` PushData [][]byte `protobuf:"bytes,2,rep,name=pushData,proto3" json:"pushData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DBQueuePopRes) Descriptor ¶ added in v1.19.0
func (*DBQueuePopRes) Descriptor() ([]byte, []int)
func (*DBQueuePopRes) GetPushData ¶ added in v1.19.0
func (m *DBQueuePopRes) GetPushData() [][]byte
func (*DBQueuePopRes) GetQueueName ¶ added in v1.19.0
func (m *DBQueuePopRes) GetQueueName() string
func (*DBQueuePopRes) Marshal ¶ added in v1.19.0
func (m *DBQueuePopRes) Marshal() (dAtA []byte, err error)
func (*DBQueuePopRes) MarshalTo ¶ added in v1.19.0
func (m *DBQueuePopRes) MarshalTo(dAtA []byte) (int, error)
func (*DBQueuePopRes) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DBQueuePopRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DBQueuePopRes) ProtoMessage ¶ added in v1.19.0
func (*DBQueuePopRes) ProtoMessage()
func (*DBQueuePopRes) Reset ¶ added in v1.19.0
func (m *DBQueuePopRes) Reset()
func (*DBQueuePopRes) Size ¶ added in v1.19.0
func (m *DBQueuePopRes) Size() (n int)
func (*DBQueuePopRes) String ¶ added in v1.19.0
func (m *DBQueuePopRes) String() string
func (*DBQueuePopRes) Unmarshal ¶ added in v1.19.0
func (m *DBQueuePopRes) Unmarshal(dAtA []byte) error
func (*DBQueuePopRes) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DBQueuePopRes) XXX_DiscardUnknown()
func (*DBQueuePopRes) XXX_Marshal ¶ added in v1.19.0
func (m *DBQueuePopRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBQueuePopRes) XXX_Merge ¶ added in v1.19.0
func (m *DBQueuePopRes) XXX_Merge(src proto.Message)
func (*DBQueuePopRes) XXX_Size ¶ added in v1.19.0
func (m *DBQueuePopRes) XXX_Size() int
func (*DBQueuePopRes) XXX_Unmarshal ¶ added in v1.19.0
func (m *DBQueuePopRes) XXX_Unmarshal(b []byte) error
type DBQueuePublishReq ¶ added in v1.19.0
type DBQueuePublishReq struct { TopicName string `protobuf:"bytes,1,opt,name=TopicName,proto3" json:"TopicName,omitempty"` PushData [][]byte `protobuf:"bytes,2,rep,name=pushData,proto3" json:"pushData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DBQueuePublishReq) Descriptor ¶ added in v1.19.0
func (*DBQueuePublishReq) Descriptor() ([]byte, []int)
func (*DBQueuePublishReq) GetPushData ¶ added in v1.19.0
func (m *DBQueuePublishReq) GetPushData() [][]byte
func (*DBQueuePublishReq) GetTopicName ¶ added in v1.19.0
func (m *DBQueuePublishReq) GetTopicName() string
func (*DBQueuePublishReq) Marshal ¶ added in v1.19.0
func (m *DBQueuePublishReq) Marshal() (dAtA []byte, err error)
func (*DBQueuePublishReq) MarshalTo ¶ added in v1.19.0
func (m *DBQueuePublishReq) MarshalTo(dAtA []byte) (int, error)
func (*DBQueuePublishReq) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DBQueuePublishReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DBQueuePublishReq) ProtoMessage ¶ added in v1.19.0
func (*DBQueuePublishReq) ProtoMessage()
func (*DBQueuePublishReq) Reset ¶ added in v1.19.0
func (m *DBQueuePublishReq) Reset()
func (*DBQueuePublishReq) Size ¶ added in v1.19.0
func (m *DBQueuePublishReq) Size() (n int)
func (*DBQueuePublishReq) String ¶ added in v1.19.0
func (m *DBQueuePublishReq) String() string
func (*DBQueuePublishReq) Unmarshal ¶ added in v1.19.0
func (m *DBQueuePublishReq) Unmarshal(dAtA []byte) error
func (*DBQueuePublishReq) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DBQueuePublishReq) XXX_DiscardUnknown()
func (*DBQueuePublishReq) XXX_Marshal ¶ added in v1.19.0
func (m *DBQueuePublishReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBQueuePublishReq) XXX_Merge ¶ added in v1.19.0
func (m *DBQueuePublishReq) XXX_Merge(src proto.Message)
func (*DBQueuePublishReq) XXX_Size ¶ added in v1.19.0
func (m *DBQueuePublishReq) XXX_Size() int
func (*DBQueuePublishReq) XXX_Unmarshal ¶ added in v1.19.0
func (m *DBQueuePublishReq) XXX_Unmarshal(b []byte) error
type DBQueuePublishRes ¶ added in v1.19.0
type DBQueuePublishRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DBQueuePublishRes) Descriptor ¶ added in v1.19.0
func (*DBQueuePublishRes) Descriptor() ([]byte, []int)
func (*DBQueuePublishRes) Marshal ¶ added in v1.19.0
func (m *DBQueuePublishRes) Marshal() (dAtA []byte, err error)
func (*DBQueuePublishRes) MarshalTo ¶ added in v1.19.0
func (m *DBQueuePublishRes) MarshalTo(dAtA []byte) (int, error)
func (*DBQueuePublishRes) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DBQueuePublishRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DBQueuePublishRes) ProtoMessage ¶ added in v1.19.0
func (*DBQueuePublishRes) ProtoMessage()
func (*DBQueuePublishRes) Reset ¶ added in v1.19.0
func (m *DBQueuePublishRes) Reset()
func (*DBQueuePublishRes) Size ¶ added in v1.19.0
func (m *DBQueuePublishRes) Size() (n int)
func (*DBQueuePublishRes) String ¶ added in v1.19.0
func (m *DBQueuePublishRes) String() string
func (*DBQueuePublishRes) Unmarshal ¶ added in v1.19.0
func (m *DBQueuePublishRes) Unmarshal(dAtA []byte) error
func (*DBQueuePublishRes) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DBQueuePublishRes) XXX_DiscardUnknown()
func (*DBQueuePublishRes) XXX_Marshal ¶ added in v1.19.0
func (m *DBQueuePublishRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBQueuePublishRes) XXX_Merge ¶ added in v1.19.0
func (m *DBQueuePublishRes) XXX_Merge(src proto.Message)
func (*DBQueuePublishRes) XXX_Size ¶ added in v1.19.0
func (m *DBQueuePublishRes) XXX_Size() int
func (*DBQueuePublishRes) XXX_Unmarshal ¶ added in v1.19.0
func (m *DBQueuePublishRes) XXX_Unmarshal(b []byte) error
type DBQueueSubscribeReq ¶ added in v1.19.0
type DBQueueSubscribeReq struct { SubType SubscribeType `protobuf:"varint,1,opt,name=SubType,proto3,enum=SubscribeType" json:"SubType,omitempty"` Method SubscribeMethod `protobuf:"varint,2,opt,name=Method,proto3,enum=SubscribeMethod" json:"Method,omitempty"` CustomerId string `protobuf:"bytes,3,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"` FromNodeId int32 `protobuf:"varint,4,opt,name=FromNodeId,proto3" json:"FromNodeId,omitempty"` RpcMethod string `protobuf:"bytes,5,opt,name=RpcMethod,proto3" json:"RpcMethod,omitempty"` TopicName string `protobuf:"bytes,6,opt,name=TopicName,proto3" json:"TopicName,omitempty"` StartIndex uint64 `protobuf:"varint,7,opt,name=StartIndex,proto3" json:"StartIndex,omitempty"` OneBatchQuantity int32 `protobuf:"varint,8,opt,name=OneBatchQuantity,proto3" json:"OneBatchQuantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
订阅
func (*DBQueueSubscribeReq) Descriptor ¶ added in v1.19.0
func (*DBQueueSubscribeReq) Descriptor() ([]byte, []int)
func (*DBQueueSubscribeReq) GetCustomerId ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetCustomerId() string
func (*DBQueueSubscribeReq) GetFromNodeId ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetFromNodeId() int32
func (*DBQueueSubscribeReq) GetMethod ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetMethod() SubscribeMethod
func (*DBQueueSubscribeReq) GetOneBatchQuantity ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetOneBatchQuantity() int32
func (*DBQueueSubscribeReq) GetRpcMethod ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetRpcMethod() string
func (*DBQueueSubscribeReq) GetStartIndex ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetStartIndex() uint64
func (*DBQueueSubscribeReq) GetSubType ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetSubType() SubscribeType
func (*DBQueueSubscribeReq) GetTopicName ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) GetTopicName() string
func (*DBQueueSubscribeReq) Marshal ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) Marshal() (dAtA []byte, err error)
func (*DBQueueSubscribeReq) MarshalTo ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) MarshalTo(dAtA []byte) (int, error)
func (*DBQueueSubscribeReq) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DBQueueSubscribeReq) ProtoMessage ¶ added in v1.19.0
func (*DBQueueSubscribeReq) ProtoMessage()
func (*DBQueueSubscribeReq) Reset ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) Reset()
func (*DBQueueSubscribeReq) Size ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) Size() (n int)
func (*DBQueueSubscribeReq) String ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) String() string
func (*DBQueueSubscribeReq) Unmarshal ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) Unmarshal(dAtA []byte) error
func (*DBQueueSubscribeReq) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) XXX_DiscardUnknown()
func (*DBQueueSubscribeReq) XXX_Marshal ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBQueueSubscribeReq) XXX_Merge ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) XXX_Merge(src proto.Message)
func (*DBQueueSubscribeReq) XXX_Size ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) XXX_Size() int
func (*DBQueueSubscribeReq) XXX_Unmarshal ¶ added in v1.19.0
func (m *DBQueueSubscribeReq) XXX_Unmarshal(b []byte) error
type DBQueueSubscribeRes ¶ added in v1.19.0
type DBQueueSubscribeRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DBQueueSubscribeRes) Descriptor ¶ added in v1.19.0
func (*DBQueueSubscribeRes) Descriptor() ([]byte, []int)
func (*DBQueueSubscribeRes) Marshal ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) Marshal() (dAtA []byte, err error)
func (*DBQueueSubscribeRes) MarshalTo ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) MarshalTo(dAtA []byte) (int, error)
func (*DBQueueSubscribeRes) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DBQueueSubscribeRes) ProtoMessage ¶ added in v1.19.0
func (*DBQueueSubscribeRes) ProtoMessage()
func (*DBQueueSubscribeRes) Reset ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) Reset()
func (*DBQueueSubscribeRes) Size ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) Size() (n int)
func (*DBQueueSubscribeRes) String ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) String() string
func (*DBQueueSubscribeRes) Unmarshal ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) Unmarshal(dAtA []byte) error
func (*DBQueueSubscribeRes) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) XXX_DiscardUnknown()
func (*DBQueueSubscribeRes) XXX_Marshal ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBQueueSubscribeRes) XXX_Merge ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) XXX_Merge(src proto.Message)
func (*DBQueueSubscribeRes) XXX_Size ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) XXX_Size() int
func (*DBQueueSubscribeRes) XXX_Unmarshal ¶ added in v1.19.0
func (m *DBQueueSubscribeRes) XXX_Unmarshal(b []byte) error
type DeleteByKey ¶ added in v1.19.0
type DeleteByKey struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` KeyList []uint64 `protobuf:"varint,2,rep,packed,name=KeyList,proto3" json:"KeyList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteByKey 删除排行榜数据
func (*DeleteByKey) Descriptor ¶ added in v1.19.0
func (*DeleteByKey) Descriptor() ([]byte, []int)
func (*DeleteByKey) GetKeyList ¶ added in v1.19.0
func (m *DeleteByKey) GetKeyList() []uint64
func (*DeleteByKey) GetRankId ¶ added in v1.19.0
func (m *DeleteByKey) GetRankId() uint64
func (*DeleteByKey) Marshal ¶ added in v1.19.0
func (m *DeleteByKey) Marshal() (dAtA []byte, err error)
func (*DeleteByKey) MarshalTo ¶ added in v1.19.0
func (m *DeleteByKey) MarshalTo(dAtA []byte) (int, error)
func (*DeleteByKey) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *DeleteByKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteByKey) ProtoMessage ¶ added in v1.19.0
func (*DeleteByKey) ProtoMessage()
func (*DeleteByKey) Reset ¶ added in v1.19.0
func (m *DeleteByKey) Reset()
func (*DeleteByKey) Size ¶ added in v1.19.0
func (m *DeleteByKey) Size() (n int)
func (*DeleteByKey) String ¶ added in v1.19.0
func (m *DeleteByKey) String() string
func (*DeleteByKey) Unmarshal ¶ added in v1.19.0
func (m *DeleteByKey) Unmarshal(dAtA []byte) error
func (*DeleteByKey) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *DeleteByKey) XXX_DiscardUnknown()
func (*DeleteByKey) XXX_Marshal ¶ added in v1.19.0
func (m *DeleteByKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteByKey) XXX_Merge ¶ added in v1.19.0
func (m *DeleteByKey) XXX_Merge(src proto.Message)
func (*DeleteByKey) XXX_Size ¶ added in v1.19.0
func (m *DeleteByKey) XXX_Size() int
func (*DeleteByKey) XXX_Unmarshal ¶ added in v1.19.0
func (m *DeleteByKey) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Master->Client
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type ExtendIncData ¶ added in v1.19.3
type ExtendIncData struct { InitValue int64 `protobuf:"varint,1,opt,name=InitValue,proto3" json:"InitValue,omitempty"` IncreaseValue int64 `protobuf:"varint,2,opt,name=IncreaseValue,proto3" json:"IncreaseValue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExtendIncData) Descriptor ¶ added in v1.19.3
func (*ExtendIncData) Descriptor() ([]byte, []int)
func (*ExtendIncData) GetIncreaseValue ¶ added in v1.19.3
func (m *ExtendIncData) GetIncreaseValue() int64
func (*ExtendIncData) GetInitValue ¶ added in v1.19.3
func (m *ExtendIncData) GetInitValue() int64
func (*ExtendIncData) Marshal ¶ added in v1.19.3
func (m *ExtendIncData) Marshal() (dAtA []byte, err error)
func (*ExtendIncData) MarshalTo ¶ added in v1.19.3
func (m *ExtendIncData) MarshalTo(dAtA []byte) (int, error)
func (*ExtendIncData) MarshalToSizedBuffer ¶ added in v1.19.3
func (m *ExtendIncData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExtendIncData) ProtoMessage ¶ added in v1.19.3
func (*ExtendIncData) ProtoMessage()
func (*ExtendIncData) Reset ¶ added in v1.19.3
func (m *ExtendIncData) Reset()
func (*ExtendIncData) Size ¶ added in v1.19.3
func (m *ExtendIncData) Size() (n int)
func (*ExtendIncData) String ¶ added in v1.19.3
func (m *ExtendIncData) String() string
func (*ExtendIncData) Unmarshal ¶ added in v1.19.3
func (m *ExtendIncData) Unmarshal(dAtA []byte) error
func (*ExtendIncData) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *ExtendIncData) XXX_DiscardUnknown()
func (*ExtendIncData) XXX_Marshal ¶ added in v1.19.3
func (m *ExtendIncData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExtendIncData) XXX_Merge ¶ added in v1.19.3
func (m *ExtendIncData) XXX_Merge(src proto.Message)
func (*ExtendIncData) XXX_Size ¶ added in v1.19.3
func (m *ExtendIncData) XXX_Size() int
func (*ExtendIncData) XXX_Unmarshal ¶ added in v1.19.3
func (m *ExtendIncData) XXX_Unmarshal(b []byte) error
type FindRankDataByKey ¶ added in v1.19.0
type FindRankDataByKey struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` Key uint64 `protobuf:"varint,2,opt,name=Key,proto3" json:"Key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FindRankDataByKey 查找排行信息
func (*FindRankDataByKey) Descriptor ¶ added in v1.19.0
func (*FindRankDataByKey) Descriptor() ([]byte, []int)
func (*FindRankDataByKey) GetKey ¶ added in v1.19.0
func (m *FindRankDataByKey) GetKey() uint64
func (*FindRankDataByKey) GetRankId ¶ added in v1.19.0
func (m *FindRankDataByKey) GetRankId() uint64
func (*FindRankDataByKey) Marshal ¶ added in v1.19.0
func (m *FindRankDataByKey) Marshal() (dAtA []byte, err error)
func (*FindRankDataByKey) MarshalTo ¶ added in v1.19.0
func (m *FindRankDataByKey) MarshalTo(dAtA []byte) (int, error)
func (*FindRankDataByKey) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *FindRankDataByKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FindRankDataByKey) ProtoMessage ¶ added in v1.19.0
func (*FindRankDataByKey) ProtoMessage()
func (*FindRankDataByKey) Reset ¶ added in v1.19.0
func (m *FindRankDataByKey) Reset()
func (*FindRankDataByKey) Size ¶ added in v1.19.0
func (m *FindRankDataByKey) Size() (n int)
func (*FindRankDataByKey) String ¶ added in v1.19.0
func (m *FindRankDataByKey) String() string
func (*FindRankDataByKey) Unmarshal ¶ added in v1.19.0
func (m *FindRankDataByKey) Unmarshal(dAtA []byte) error
func (*FindRankDataByKey) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *FindRankDataByKey) XXX_DiscardUnknown()
func (*FindRankDataByKey) XXX_Marshal ¶ added in v1.19.0
func (m *FindRankDataByKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindRankDataByKey) XXX_Merge ¶ added in v1.19.0
func (m *FindRankDataByKey) XXX_Merge(src proto.Message)
func (*FindRankDataByKey) XXX_Size ¶ added in v1.19.0
func (m *FindRankDataByKey) XXX_Size() int
func (*FindRankDataByKey) XXX_Unmarshal ¶ added in v1.19.0
func (m *FindRankDataByKey) XXX_Unmarshal(b []byte) error
type FindRankDataByRank ¶ added in v1.19.0
type FindRankDataByRank struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` Rank uint64 `protobuf:"varint,2,opt,name=Rank,proto3" json:"Rank,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FindRankDataByRank 查找排行信息
func (*FindRankDataByRank) Descriptor ¶ added in v1.19.0
func (*FindRankDataByRank) Descriptor() ([]byte, []int)
func (*FindRankDataByRank) GetRank ¶ added in v1.19.0
func (m *FindRankDataByRank) GetRank() uint64
func (*FindRankDataByRank) GetRankId ¶ added in v1.19.0
func (m *FindRankDataByRank) GetRankId() uint64
func (*FindRankDataByRank) Marshal ¶ added in v1.19.0
func (m *FindRankDataByRank) Marshal() (dAtA []byte, err error)
func (*FindRankDataByRank) MarshalTo ¶ added in v1.19.0
func (m *FindRankDataByRank) MarshalTo(dAtA []byte) (int, error)
func (*FindRankDataByRank) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *FindRankDataByRank) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FindRankDataByRank) ProtoMessage ¶ added in v1.19.0
func (*FindRankDataByRank) ProtoMessage()
func (*FindRankDataByRank) Reset ¶ added in v1.19.0
func (m *FindRankDataByRank) Reset()
func (*FindRankDataByRank) Size ¶ added in v1.19.0
func (m *FindRankDataByRank) Size() (n int)
func (*FindRankDataByRank) String ¶ added in v1.19.0
func (m *FindRankDataByRank) String() string
func (*FindRankDataByRank) Unmarshal ¶ added in v1.19.0
func (m *FindRankDataByRank) Unmarshal(dAtA []byte) error
func (*FindRankDataByRank) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *FindRankDataByRank) XXX_DiscardUnknown()
func (*FindRankDataByRank) XXX_Marshal ¶ added in v1.19.0
func (m *FindRankDataByRank) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindRankDataByRank) XXX_Merge ¶ added in v1.19.0
func (m *FindRankDataByRank) XXX_Merge(src proto.Message)
func (*FindRankDataByRank) XXX_Size ¶ added in v1.19.0
func (m *FindRankDataByRank) XXX_Size() int
func (*FindRankDataByRank) XXX_Unmarshal ¶ added in v1.19.0
func (m *FindRankDataByRank) XXX_Unmarshal(b []byte) error
type FindRankDataList ¶ added in v1.19.0
type FindRankDataList struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` StartRank uint64 `protobuf:"varint,2,opt,name=StartRank,proto3" json:"StartRank,omitempty"` Count uint64 `protobuf:"varint,3,opt,name=Count,proto3" json:"Count,omitempty"` Key uint64 `protobuf:"varint,4,opt,name=Key,proto3" json:"Key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FindRankDataList 查找排行信息
func (*FindRankDataList) Descriptor ¶ added in v1.19.0
func (*FindRankDataList) Descriptor() ([]byte, []int)
func (*FindRankDataList) GetCount ¶ added in v1.19.0
func (m *FindRankDataList) GetCount() uint64
func (*FindRankDataList) GetKey ¶ added in v1.19.0
func (m *FindRankDataList) GetKey() uint64
func (*FindRankDataList) GetRankId ¶ added in v1.19.0
func (m *FindRankDataList) GetRankId() uint64
func (*FindRankDataList) GetStartRank ¶ added in v1.19.0
func (m *FindRankDataList) GetStartRank() uint64
func (*FindRankDataList) Marshal ¶ added in v1.19.0
func (m *FindRankDataList) Marshal() (dAtA []byte, err error)
func (*FindRankDataList) MarshalTo ¶ added in v1.19.0
func (m *FindRankDataList) MarshalTo(dAtA []byte) (int, error)
func (*FindRankDataList) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *FindRankDataList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FindRankDataList) ProtoMessage ¶ added in v1.19.0
func (*FindRankDataList) ProtoMessage()
func (*FindRankDataList) Reset ¶ added in v1.19.0
func (m *FindRankDataList) Reset()
func (*FindRankDataList) Size ¶ added in v1.19.0
func (m *FindRankDataList) Size() (n int)
func (*FindRankDataList) String ¶ added in v1.19.0
func (m *FindRankDataList) String() string
func (*FindRankDataList) Unmarshal ¶ added in v1.19.0
func (m *FindRankDataList) Unmarshal(dAtA []byte) error
func (*FindRankDataList) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *FindRankDataList) XXX_DiscardUnknown()
func (*FindRankDataList) XXX_Marshal ¶ added in v1.19.0
func (m *FindRankDataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindRankDataList) XXX_Merge ¶ added in v1.19.0
func (m *FindRankDataList) XXX_Merge(src proto.Message)
func (*FindRankDataList) XXX_Size ¶ added in v1.19.0
func (m *FindRankDataList) XXX_Size() int
func (*FindRankDataList) XXX_Unmarshal ¶ added in v1.19.0
func (m *FindRankDataList) XXX_Unmarshal(b []byte) error
type FuncRpcClient ¶
type FuncRpcServer ¶
type FuncRpcServer func() *Server
type GoGoPBProcessor ¶
type GoGoPBProcessor struct { }
func (*GoGoPBProcessor) Clone ¶ added in v1.19.3
func (slf *GoGoPBProcessor) Clone(src interface{}) (interface{}, error)
func (*GoGoPBProcessor) GetProcessorType ¶
func (slf *GoGoPBProcessor) GetProcessorType() RpcProcessorType
func (*GoGoPBProcessor) IsParse ¶
func (slf *GoGoPBProcessor) IsParse(param interface{}) bool
func (*GoGoPBProcessor) MakeRpcRequest ¶
func (slf *GoGoPBProcessor) MakeRpcRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, inParam []byte) IRpcRequestData
func (*GoGoPBProcessor) MakeRpcResponse ¶
func (slf *GoGoPBProcessor) MakeRpcResponse(seq uint64, err RpcError, reply []byte) IRpcResponseData
func (*GoGoPBProcessor) Marshal ¶
func (slf *GoGoPBProcessor) Marshal(v interface{}) ([]byte, error)
func (*GoGoPBProcessor) ReleaseRpcRequest ¶
func (slf *GoGoPBProcessor) ReleaseRpcRequest(rpcRequestData IRpcRequestData)
func (*GoGoPBProcessor) ReleaseRpcResponse ¶
func (slf *GoGoPBProcessor) ReleaseRpcResponse(rpcResponseData IRpcResponseData)
func (*GoGoPBProcessor) Unmarshal ¶
func (slf *GoGoPBProcessor) Unmarshal(data []byte, msg interface{}) error
type GoGoPBRpcRequestData ¶
type GoGoPBRpcRequestData struct { Seq uint64 `protobuf:"varint,1,opt,name=Seq,proto3" json:"Seq,omitempty"` RpcMethodId uint32 `protobuf:"varint,2,opt,name=RpcMethodId,proto3" json:"RpcMethodId,omitempty"` ServiceMethod string `protobuf:"bytes,3,opt,name=ServiceMethod,proto3" json:"ServiceMethod,omitempty"` NoReply bool `protobuf:"varint,4,opt,name=NoReply,proto3" json:"NoReply,omitempty"` InParam []byte `protobuf:"bytes,5,opt,name=InParam,proto3" json:"InParam,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GoGoPBRpcRequestData) Descriptor ¶
func (*GoGoPBRpcRequestData) Descriptor() ([]byte, []int)
func (*GoGoPBRpcRequestData) GetInParam ¶
func (m *GoGoPBRpcRequestData) GetInParam() []byte
func (*GoGoPBRpcRequestData) GetNoReply ¶
func (m *GoGoPBRpcRequestData) GetNoReply() bool
func (*GoGoPBRpcRequestData) GetRpcMethodId ¶
func (m *GoGoPBRpcRequestData) GetRpcMethodId() uint32
func (*GoGoPBRpcRequestData) GetSeq ¶
func (m *GoGoPBRpcRequestData) GetSeq() uint64
func (*GoGoPBRpcRequestData) GetServiceMethod ¶
func (m *GoGoPBRpcRequestData) GetServiceMethod() string
func (*GoGoPBRpcRequestData) IsNoReply ¶
func (slf *GoGoPBRpcRequestData) IsNoReply() bool
func (*GoGoPBRpcRequestData) MakeRequest ¶
func (slf *GoGoPBRpcRequestData) MakeRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, inParam []byte) *GoGoPBRpcRequestData
func (*GoGoPBRpcRequestData) Marshal ¶
func (m *GoGoPBRpcRequestData) Marshal() (dAtA []byte, err error)
func (*GoGoPBRpcRequestData) MarshalTo ¶
func (m *GoGoPBRpcRequestData) MarshalTo(dAtA []byte) (int, error)
func (*GoGoPBRpcRequestData) MarshalToSizedBuffer ¶
func (m *GoGoPBRpcRequestData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GoGoPBRpcRequestData) ProtoMessage ¶
func (*GoGoPBRpcRequestData) ProtoMessage()
func (*GoGoPBRpcRequestData) Reset ¶
func (m *GoGoPBRpcRequestData) Reset()
func (*GoGoPBRpcRequestData) Size ¶
func (m *GoGoPBRpcRequestData) Size() (n int)
func (*GoGoPBRpcRequestData) String ¶
func (m *GoGoPBRpcRequestData) String() string
func (*GoGoPBRpcRequestData) Unmarshal ¶
func (m *GoGoPBRpcRequestData) Unmarshal(dAtA []byte) error
func (*GoGoPBRpcRequestData) XXX_DiscardUnknown ¶
func (m *GoGoPBRpcRequestData) XXX_DiscardUnknown()
func (*GoGoPBRpcRequestData) XXX_Marshal ¶
func (m *GoGoPBRpcRequestData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoGoPBRpcRequestData) XXX_Merge ¶
func (m *GoGoPBRpcRequestData) XXX_Merge(src proto.Message)
func (*GoGoPBRpcRequestData) XXX_Size ¶
func (m *GoGoPBRpcRequestData) XXX_Size() int
func (*GoGoPBRpcRequestData) XXX_Unmarshal ¶
func (m *GoGoPBRpcRequestData) XXX_Unmarshal(b []byte) error
type GoGoPBRpcResponseData ¶
type GoGoPBRpcResponseData struct { Seq uint64 `protobuf:"varint,1,opt,name=Seq,proto3" json:"Seq,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` Reply []byte `protobuf:"bytes,3,opt,name=Reply,proto3" json:"Reply,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GoGoPBRpcResponseData) Descriptor ¶
func (*GoGoPBRpcResponseData) Descriptor() ([]byte, []int)
func (*GoGoPBRpcResponseData) GetErr ¶
func (slf *GoGoPBRpcResponseData) GetErr() *RpcError
func (*GoGoPBRpcResponseData) GetError ¶
func (m *GoGoPBRpcResponseData) GetError() string
func (*GoGoPBRpcResponseData) GetReply ¶
func (m *GoGoPBRpcResponseData) GetReply() []byte
func (*GoGoPBRpcResponseData) GetSeq ¶
func (m *GoGoPBRpcResponseData) GetSeq() uint64
func (*GoGoPBRpcResponseData) MakeRespone ¶
func (slf *GoGoPBRpcResponseData) MakeRespone(seq uint64, err RpcError, reply []byte) *GoGoPBRpcResponseData
func (*GoGoPBRpcResponseData) Marshal ¶
func (m *GoGoPBRpcResponseData) Marshal() (dAtA []byte, err error)
func (*GoGoPBRpcResponseData) MarshalTo ¶
func (m *GoGoPBRpcResponseData) MarshalTo(dAtA []byte) (int, error)
func (*GoGoPBRpcResponseData) MarshalToSizedBuffer ¶
func (m *GoGoPBRpcResponseData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GoGoPBRpcResponseData) ProtoMessage ¶
func (*GoGoPBRpcResponseData) ProtoMessage()
func (*GoGoPBRpcResponseData) Reset ¶
func (m *GoGoPBRpcResponseData) Reset()
func (*GoGoPBRpcResponseData) Size ¶
func (m *GoGoPBRpcResponseData) Size() (n int)
func (*GoGoPBRpcResponseData) String ¶
func (m *GoGoPBRpcResponseData) String() string
func (*GoGoPBRpcResponseData) Unmarshal ¶
func (m *GoGoPBRpcResponseData) Unmarshal(dAtA []byte) error
func (*GoGoPBRpcResponseData) XXX_DiscardUnknown ¶
func (m *GoGoPBRpcResponseData) XXX_DiscardUnknown()
func (*GoGoPBRpcResponseData) XXX_Marshal ¶
func (m *GoGoPBRpcResponseData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoGoPBRpcResponseData) XXX_Merge ¶
func (m *GoGoPBRpcResponseData) XXX_Merge(src proto.Message)
func (*GoGoPBRpcResponseData) XXX_Size ¶
func (m *GoGoPBRpcResponseData) XXX_Size() int
func (*GoGoPBRpcResponseData) XXX_Unmarshal ¶
func (m *GoGoPBRpcResponseData) XXX_Unmarshal(b []byte) error
type IDiscoveryServiceListener ¶ added in v1.18.3
type INodeListener ¶ added in v1.18.3
type IRealClient ¶ added in v1.19.3
type IRealClient interface { SetConn(conn *network.TCPConn) Close(waitDone bool) AsyncCall(rpcHandler IRpcHandler, serviceMethod string, callback reflect.Value, args interface{}, replyParam interface{}) error Go(rpcHandler IRpcHandler, noReply bool, serviceMethod string, args interface{}, reply interface{}) *Call RawGo(rpcHandler IRpcHandler, processor IRpcProcessor, noReply bool, rpcMethodId uint32, serviceMethod string, rawArgs []byte, reply interface{}) *Call IsConnected() bool Run() OnClose() }
type IRpcHandler ¶
type IRpcHandler interface { IRpcHandlerChannel GetName() string InitRpcHandler(rpcHandler IRpcHandler, getClientFun FuncRpcClient, getServerFun FuncRpcServer, rpcHandlerChannel IRpcHandlerChannel) GetRpcHandler() IRpcHandler HandlerRpcRequest(request *RpcRequest) HandlerRpcResponseCB(call *Call) CallMethod(client *Client, ServiceMethod string, param interface{}, callBack reflect.Value, reply interface{}) error AsyncCall(serviceMethod string, args interface{}, callback interface{}) error Call(serviceMethod string, args interface{}, reply interface{}) error Go(serviceMethod string, args interface{}) error AsyncCallNode(nodeId int, serviceMethod string, args interface{}, callback interface{}) error CallNode(nodeId int, serviceMethod string, args interface{}, reply interface{}) error GoNode(nodeId int, serviceMethod string, args interface{}) error RawGoNode(rpcProcessorType RpcProcessorType, nodeId int, rpcMethodId uint32, serviceName string, rawArgs []byte) error CastGo(serviceMethod string, args interface{}) error IsSingleCoroutine() bool UnmarshalInParam(rpcProcessor IRpcProcessor, serviceMethod string, rawRpcMethodId uint32, inParam []byte) (interface{}, error) GetRpcServer() FuncRpcServer }
type IRpcHandlerChannel ¶
type IRpcHandlerChannel interface { PushRpcResponse(call *Call) error PushRpcRequest(rpcRequest *RpcRequest) error }
type IRpcProcessor ¶
type IRpcProcessor interface { Clone(src interface{}) (interface{}, error) Marshal(v interface{}) ([]byte, error) //b表示自定义缓冲区,可以填nil,由系统自动分配 Unmarshal(data []byte, v interface{}) error MakeRpcRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, inParam []byte) IRpcRequestData MakeRpcResponse(seq uint64, err RpcError, reply []byte) IRpcResponseData ReleaseRpcRequest(rpcRequestData IRpcRequestData) ReleaseRpcResponse(rpcRequestData IRpcResponseData) IsParse(param interface{}) bool //是否可解析 GetProcessorType() RpcProcessorType }
func GetProcessor ¶
func GetProcessor(processorType uint8) IRpcProcessor
type IRpcRequestData ¶
type IRpcResponseData ¶
type IncreaseRankData ¶ added in v1.19.3
type IncreaseRankData struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` Key uint64 `protobuf:"varint,2,opt,name=Key,proto3" json:"Key,omitempty"` Extend []*ExtendIncData `protobuf:"bytes,3,rep,name=Extend,proto3" json:"Extend,omitempty"` IncreaseSortData []int64 `protobuf:"varint,4,rep,packed,name=IncreaseSortData,proto3" json:"IncreaseSortData,omitempty"` SetSortAndExtendData []*SetSortAndExtendData `protobuf:"bytes,5,rep,name=SetSortAndExtendData,proto3" json:"SetSortAndExtendData,omitempty"` ReturnRankData bool `protobuf:"varint,6,opt,name=ReturnRankData,proto3" json:"ReturnRankData,omitempty"` InsertDataOnNonExistent bool `protobuf:"varint,7,opt,name=InsertDataOnNonExistent,proto3" json:"InsertDataOnNonExistent,omitempty"` InitData []byte `protobuf:"bytes,8,opt,name=InitData,proto3" json:"InitData,omitempty"` InitSortData []int64 `protobuf:"varint,9,rep,packed,name=InitSortData,proto3" json:"InitSortData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
自增值
func (*IncreaseRankData) Descriptor ¶ added in v1.19.3
func (*IncreaseRankData) Descriptor() ([]byte, []int)
func (*IncreaseRankData) GetExtend ¶ added in v1.19.3
func (m *IncreaseRankData) GetExtend() []*ExtendIncData
func (*IncreaseRankData) GetIncreaseSortData ¶ added in v1.19.3
func (m *IncreaseRankData) GetIncreaseSortData() []int64
func (*IncreaseRankData) GetInitData ¶ added in v1.19.3
func (m *IncreaseRankData) GetInitData() []byte
func (*IncreaseRankData) GetInitSortData ¶ added in v1.19.3
func (m *IncreaseRankData) GetInitSortData() []int64
func (*IncreaseRankData) GetInsertDataOnNonExistent ¶ added in v1.19.3
func (m *IncreaseRankData) GetInsertDataOnNonExistent() bool
func (*IncreaseRankData) GetKey ¶ added in v1.19.3
func (m *IncreaseRankData) GetKey() uint64
func (*IncreaseRankData) GetRankId ¶ added in v1.19.3
func (m *IncreaseRankData) GetRankId() uint64
func (*IncreaseRankData) GetReturnRankData ¶ added in v1.19.3
func (m *IncreaseRankData) GetReturnRankData() bool
func (*IncreaseRankData) GetSetSortAndExtendData ¶ added in v1.19.3
func (m *IncreaseRankData) GetSetSortAndExtendData() []*SetSortAndExtendData
func (*IncreaseRankData) Marshal ¶ added in v1.19.3
func (m *IncreaseRankData) Marshal() (dAtA []byte, err error)
func (*IncreaseRankData) MarshalTo ¶ added in v1.19.3
func (m *IncreaseRankData) MarshalTo(dAtA []byte) (int, error)
func (*IncreaseRankData) MarshalToSizedBuffer ¶ added in v1.19.3
func (m *IncreaseRankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IncreaseRankData) ProtoMessage ¶ added in v1.19.3
func (*IncreaseRankData) ProtoMessage()
func (*IncreaseRankData) Reset ¶ added in v1.19.3
func (m *IncreaseRankData) Reset()
func (*IncreaseRankData) Size ¶ added in v1.19.3
func (m *IncreaseRankData) Size() (n int)
func (*IncreaseRankData) String ¶ added in v1.19.3
func (m *IncreaseRankData) String() string
func (*IncreaseRankData) Unmarshal ¶ added in v1.19.3
func (m *IncreaseRankData) Unmarshal(dAtA []byte) error
func (*IncreaseRankData) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *IncreaseRankData) XXX_DiscardUnknown()
func (*IncreaseRankData) XXX_Marshal ¶ added in v1.19.3
func (m *IncreaseRankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IncreaseRankData) XXX_Merge ¶ added in v1.19.3
func (m *IncreaseRankData) XXX_Merge(src proto.Message)
func (*IncreaseRankData) XXX_Size ¶ added in v1.19.3
func (m *IncreaseRankData) XXX_Size() int
func (*IncreaseRankData) XXX_Unmarshal ¶ added in v1.19.3
func (m *IncreaseRankData) XXX_Unmarshal(b []byte) error
type IncreaseRankDataRet ¶ added in v1.19.3
type IncreaseRankDataRet struct { PosData *RankPosData `protobuf:"bytes,1,opt,name=PosData,proto3" json:"PosData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IncreaseRankDataRet) Descriptor ¶ added in v1.19.3
func (*IncreaseRankDataRet) Descriptor() ([]byte, []int)
func (*IncreaseRankDataRet) GetPosData ¶ added in v1.19.3
func (m *IncreaseRankDataRet) GetPosData() *RankPosData
func (*IncreaseRankDataRet) Marshal ¶ added in v1.19.3
func (m *IncreaseRankDataRet) Marshal() (dAtA []byte, err error)
func (*IncreaseRankDataRet) MarshalTo ¶ added in v1.19.3
func (m *IncreaseRankDataRet) MarshalTo(dAtA []byte) (int, error)
func (*IncreaseRankDataRet) MarshalToSizedBuffer ¶ added in v1.19.3
func (m *IncreaseRankDataRet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IncreaseRankDataRet) ProtoMessage ¶ added in v1.19.3
func (*IncreaseRankDataRet) ProtoMessage()
func (*IncreaseRankDataRet) Reset ¶ added in v1.19.3
func (m *IncreaseRankDataRet) Reset()
func (*IncreaseRankDataRet) Size ¶ added in v1.19.3
func (m *IncreaseRankDataRet) Size() (n int)
func (*IncreaseRankDataRet) String ¶ added in v1.19.3
func (m *IncreaseRankDataRet) String() string
func (*IncreaseRankDataRet) Unmarshal ¶ added in v1.19.3
func (m *IncreaseRankDataRet) Unmarshal(dAtA []byte) error
func (*IncreaseRankDataRet) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *IncreaseRankDataRet) XXX_DiscardUnknown()
func (*IncreaseRankDataRet) XXX_Marshal ¶ added in v1.19.3
func (m *IncreaseRankDataRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IncreaseRankDataRet) XXX_Merge ¶ added in v1.19.3
func (m *IncreaseRankDataRet) XXX_Merge(src proto.Message)
func (*IncreaseRankDataRet) XXX_Size ¶ added in v1.19.3
func (m *IncreaseRankDataRet) XXX_Size() int
func (*IncreaseRankDataRet) XXX_Unmarshal ¶ added in v1.19.3
func (m *IncreaseRankDataRet) XXX_Unmarshal(b []byte) error
type JsonProcessor ¶
type JsonProcessor struct { }
func (*JsonProcessor) Clone ¶ added in v1.19.3
func (jsonProcessor *JsonProcessor) Clone(src interface{}) (interface{}, error)
func (*JsonProcessor) GetProcessorType ¶
func (jsonProcessor *JsonProcessor) GetProcessorType() RpcProcessorType
func (*JsonProcessor) IsParse ¶
func (jsonProcessor *JsonProcessor) IsParse(param interface{}) bool
func (*JsonProcessor) MakeRpcRequest ¶
func (jsonProcessor *JsonProcessor) MakeRpcRequest(seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, inParam []byte) IRpcRequestData
func (*JsonProcessor) MakeRpcResponse ¶
func (jsonProcessor *JsonProcessor) MakeRpcResponse(seq uint64, err RpcError, reply []byte) IRpcResponseData
func (*JsonProcessor) Marshal ¶
func (jsonProcessor *JsonProcessor) Marshal(v interface{}) ([]byte, error)
func (*JsonProcessor) ReleaseRpcRequest ¶
func (jsonProcessor *JsonProcessor) ReleaseRpcRequest(rpcRequestData IRpcRequestData)
func (*JsonProcessor) ReleaseRpcResponse ¶
func (jsonProcessor *JsonProcessor) ReleaseRpcResponse(rpcResponseData IRpcResponseData)
func (*JsonProcessor) Unmarshal ¶
func (jsonProcessor *JsonProcessor) Unmarshal(data []byte, v interface{}) error
type JsonRpcRequestData ¶
type JsonRpcRequestData struct { //packhead Seq uint64 // sequence number chosen by client ServiceMethod string // format: "Service.Method" NoReply bool //是否需要返回 //packbody InParam []byte // contains filtered or unexported fields }
func (*JsonRpcRequestData) GetInParam ¶
func (jsonRpcRequestData *JsonRpcRequestData) GetInParam() []byte
func (*JsonRpcRequestData) GetRpcMethodId ¶
func (jsonRpcRequestData *JsonRpcRequestData) GetRpcMethodId() uint32
func (*JsonRpcRequestData) GetSeq ¶
func (jsonRpcRequestData *JsonRpcRequestData) GetSeq() uint64
func (*JsonRpcRequestData) GetServiceMethod ¶
func (jsonRpcRequestData *JsonRpcRequestData) GetServiceMethod() string
func (*JsonRpcRequestData) IsNoReply ¶
func (jsonRpcRequestData *JsonRpcRequestData) IsNoReply() bool
type JsonRpcResponseData ¶
type JsonRpcResponseData struct { //head Seq uint64 // sequence number chosen by client Err string //returns Reply []byte }
func (*JsonRpcResponseData) GetErr ¶
func (jsonRpcResponseData *JsonRpcResponseData) GetErr() *RpcError
func (*JsonRpcResponseData) GetReply ¶
func (jsonRpcResponseData *JsonRpcResponseData) GetReply() []byte
func (*JsonRpcResponseData) GetSeq ¶
func (jsonRpcResponseData *JsonRpcResponseData) GetSeq() uint64
type LClient ¶ added in v1.19.3
type LClient struct {
// contains filtered or unexported fields
}
本结点的Client
func (*LClient) Go ¶ added in v1.19.3
func (lc *LClient) Go(rpcHandler IRpcHandler, noReply bool, serviceMethod string, args interface{}, reply interface{}) *Call
func (*LClient) IsConnected ¶ added in v1.19.3
func (*LClient) RawGo ¶ added in v1.19.3
func (rc *LClient) RawGo(rpcHandler IRpcHandler, processor IRpcProcessor, noReply bool, rpcMethodId uint32, serviceName string, rawArgs []byte, reply interface{}) *Call
type NodeInfo ¶
type NodeInfo struct { NodeId int32 `protobuf:"varint,1,opt,name=NodeId,proto3" json:"NodeId,omitempty"` NodeName string `protobuf:"bytes,2,opt,name=NodeName,proto3" json:"NodeName,omitempty"` ListenAddr string `protobuf:"bytes,3,opt,name=ListenAddr,proto3" json:"ListenAddr,omitempty"` MaxRpcParamLen uint32 `protobuf:"varint,4,opt,name=MaxRpcParamLen,proto3" json:"MaxRpcParamLen,omitempty"` Private bool `protobuf:"varint,5,opt,name=Private,proto3" json:"Private,omitempty"` PublicServiceList []string `protobuf:"bytes,6,rep,name=PublicServiceList,proto3" json:"PublicServiceList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NodeInfo) Descriptor ¶
func (*NodeInfo) GetListenAddr ¶
func (*NodeInfo) GetMaxRpcParamLen ¶
func (*NodeInfo) GetNodeName ¶
func (*NodeInfo) GetPrivate ¶
func (*NodeInfo) GetPublicServiceList ¶
func (*NodeInfo) MarshalToSizedBuffer ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) XXX_DiscardUnknown ¶
func (m *NodeInfo) XXX_DiscardUnknown()
func (*NodeInfo) XXX_Marshal ¶
func (*NodeInfo) XXX_Unmarshal ¶
type RClient ¶ added in v1.19.3
type RClient struct { network.TCPClient TriggerRpcConnEvent // contains filtered or unexported fields }
跨结点连接的Client
func (*RClient) Go ¶ added in v1.19.3
func (rc *RClient) Go(rpcHandler IRpcHandler, noReply bool, serviceMethod string, args interface{}, reply interface{}) *Call
func (*RClient) IsConnected ¶ added in v1.19.3
func (*RClient) RawGo ¶ added in v1.19.3
func (rc *RClient) RawGo(rpcHandler IRpcHandler, processor IRpcProcessor, noReply bool, rpcMethodId uint32, serviceMethod string, rawArgs []byte, reply interface{}) *Call
type RankData ¶ added in v1.19.0
type RankData struct { Key uint64 `protobuf:"varint,1,opt,name=Key,proto3" json:"Key,omitempty"` SortData []int64 `protobuf:"varint,2,rep,packed,name=SortData,proto3" json:"SortData,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` ExData []*ExtendIncData `protobuf:"bytes,4,rep,name=ExData,proto3" json:"ExData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RankData 排行数据
func (*RankData) Descriptor ¶ added in v1.19.0
func (*RankData) GetExData ¶ added in v1.19.3
func (m *RankData) GetExData() []*ExtendIncData
func (*RankData) GetSortData ¶ added in v1.19.0
func (*RankData) MarshalToSizedBuffer ¶ added in v1.19.0
func (*RankData) ProtoMessage ¶ added in v1.19.0
func (*RankData) ProtoMessage()
func (*RankData) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *RankData) XXX_DiscardUnknown()
func (*RankData) XXX_Marshal ¶ added in v1.19.0
func (*RankData) XXX_Unmarshal ¶ added in v1.19.0
type RankDataList ¶ added in v1.19.0
type RankDataList struct { RankDataCount uint64 `protobuf:"varint,1,opt,name=RankDataCount,proto3" json:"RankDataCount,omitempty"` RankPosDataList []*RankPosData `protobuf:"bytes,2,rep,name=RankPosDataList,proto3" json:"RankPosDataList,omitempty"` KeyRank *RankPosData `protobuf:"bytes,3,opt,name=KeyRank,proto3" json:"KeyRank,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RankDataList
func (*RankDataList) Descriptor ¶ added in v1.19.0
func (*RankDataList) Descriptor() ([]byte, []int)
func (*RankDataList) GetKeyRank ¶ added in v1.19.0
func (m *RankDataList) GetKeyRank() *RankPosData
func (*RankDataList) GetRankDataCount ¶ added in v1.19.0
func (m *RankDataList) GetRankDataCount() uint64
func (*RankDataList) GetRankPosDataList ¶ added in v1.19.0
func (m *RankDataList) GetRankPosDataList() []*RankPosData
func (*RankDataList) Marshal ¶ added in v1.19.0
func (m *RankDataList) Marshal() (dAtA []byte, err error)
func (*RankDataList) MarshalTo ¶ added in v1.19.0
func (m *RankDataList) MarshalTo(dAtA []byte) (int, error)
func (*RankDataList) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *RankDataList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RankDataList) ProtoMessage ¶ added in v1.19.0
func (*RankDataList) ProtoMessage()
func (*RankDataList) Reset ¶ added in v1.19.0
func (m *RankDataList) Reset()
func (*RankDataList) Size ¶ added in v1.19.0
func (m *RankDataList) Size() (n int)
func (*RankDataList) String ¶ added in v1.19.0
func (m *RankDataList) String() string
func (*RankDataList) Unmarshal ¶ added in v1.19.0
func (m *RankDataList) Unmarshal(dAtA []byte) error
func (*RankDataList) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *RankDataList) XXX_DiscardUnknown()
func (*RankDataList) XXX_Marshal ¶ added in v1.19.0
func (m *RankDataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RankDataList) XXX_Merge ¶ added in v1.19.0
func (m *RankDataList) XXX_Merge(src proto.Message)
func (*RankDataList) XXX_Size ¶ added in v1.19.0
func (m *RankDataList) XXX_Size() int
func (*RankDataList) XXX_Unmarshal ¶ added in v1.19.0
func (m *RankDataList) XXX_Unmarshal(b []byte) error
type RankInfo ¶ added in v1.19.3
type RankInfo struct { Key uint64 `protobuf:"varint,1,opt,name=Key,proto3" json:"Key,omitempty"` Rank uint64 `protobuf:"varint,2,opt,name=Rank,proto3" json:"Rank,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RankInfo) Descriptor ¶ added in v1.19.3
func (*RankInfo) MarshalToSizedBuffer ¶ added in v1.19.3
func (*RankInfo) ProtoMessage ¶ added in v1.19.3
func (*RankInfo) ProtoMessage()
func (*RankInfo) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *RankInfo) XXX_DiscardUnknown()
func (*RankInfo) XXX_Marshal ¶ added in v1.19.3
func (*RankInfo) XXX_Unmarshal ¶ added in v1.19.3
type RankList ¶ added in v1.19.0
type RankList struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` RankName string `protobuf:"bytes,2,opt,name=RankName,proto3" json:"RankName,omitempty"` SkipListLevel int32 `protobuf:"varint,3,opt,name=SkipListLevel,proto3" json:"SkipListLevel,omitempty"` IsDec bool `protobuf:"varint,4,opt,name=IsDec,proto3" json:"IsDec,omitempty"` MaxRank uint64 `protobuf:"varint,5,opt,name=MaxRank,proto3" json:"MaxRank,omitempty"` ExpireMs int64 `protobuf:"varint,6,opt,name=ExpireMs,proto3" json:"ExpireMs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RankList 排行榜数据
func (*RankList) Descriptor ¶ added in v1.19.0
func (*RankList) GetExpireMs ¶ added in v1.19.0
func (*RankList) GetMaxRank ¶ added in v1.19.0
func (*RankList) GetRankName ¶ added in v1.19.0
func (*RankList) GetSkipListLevel ¶ added in v1.19.0
func (*RankList) MarshalToSizedBuffer ¶ added in v1.19.0
func (*RankList) ProtoMessage ¶ added in v1.19.0
func (*RankList) ProtoMessage()
func (*RankList) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *RankList) XXX_DiscardUnknown()
func (*RankList) XXX_Marshal ¶ added in v1.19.0
func (*RankList) XXX_Unmarshal ¶ added in v1.19.0
type RankPosData ¶ added in v1.19.0
type RankPosData struct { Key uint64 `protobuf:"varint,1,opt,name=Key,proto3" json:"Key,omitempty"` Rank uint64 `protobuf:"varint,2,opt,name=Rank,proto3" json:"Rank,omitempty"` SortData []int64 `protobuf:"varint,3,rep,packed,name=SortData,proto3" json:"SortData,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"` ExtendData []int64 `protobuf:"varint,5,rep,packed,name=ExtendData,proto3" json:"ExtendData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RankPosData 排行数据——查询返回
func (*RankPosData) Descriptor ¶ added in v1.19.0
func (*RankPosData) Descriptor() ([]byte, []int)
func (*RankPosData) GetData ¶ added in v1.19.0
func (m *RankPosData) GetData() []byte
func (*RankPosData) GetExtendData ¶ added in v1.19.3
func (m *RankPosData) GetExtendData() []int64
func (*RankPosData) GetKey ¶ added in v1.19.0
func (m *RankPosData) GetKey() uint64
func (*RankPosData) GetRank ¶ added in v1.19.0
func (m *RankPosData) GetRank() uint64
func (*RankPosData) GetSortData ¶ added in v1.19.0
func (m *RankPosData) GetSortData() []int64
func (*RankPosData) Marshal ¶ added in v1.19.0
func (m *RankPosData) Marshal() (dAtA []byte, err error)
func (*RankPosData) MarshalTo ¶ added in v1.19.0
func (m *RankPosData) MarshalTo(dAtA []byte) (int, error)
func (*RankPosData) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *RankPosData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RankPosData) ProtoMessage ¶ added in v1.19.0
func (*RankPosData) ProtoMessage()
func (*RankPosData) Reset ¶ added in v1.19.0
func (m *RankPosData) Reset()
func (*RankPosData) Size ¶ added in v1.19.0
func (m *RankPosData) Size() (n int)
func (*RankPosData) String ¶ added in v1.19.0
func (m *RankPosData) String() string
func (*RankPosData) Unmarshal ¶ added in v1.19.0
func (m *RankPosData) Unmarshal(dAtA []byte) error
func (*RankPosData) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *RankPosData) XXX_DiscardUnknown()
func (*RankPosData) XXX_Marshal ¶ added in v1.19.0
func (m *RankPosData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RankPosData) XXX_Merge ¶ added in v1.19.0
func (m *RankPosData) XXX_Merge(src proto.Message)
func (*RankPosData) XXX_Size ¶ added in v1.19.0
func (m *RankPosData) XXX_Size() int
func (*RankPosData) XXX_Unmarshal ¶ added in v1.19.0
func (m *RankPosData) XXX_Unmarshal(b []byte) error
type RankResult ¶ added in v1.19.0
type RankResult struct { AddCount int32 `protobuf:"varint,1,opt,name=AddCount,proto3" json:"AddCount,omitempty"` ModifyCount int32 `protobuf:"varint,2,opt,name=ModifyCount,proto3" json:"ModifyCount,omitempty"` RemoveCount int32 `protobuf:"varint,3,opt,name=RemoveCount,proto3" json:"RemoveCount,omitempty"` NewRank []*RankInfo `protobuf:"bytes,4,rep,name=NewRank,proto3" json:"NewRank,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RankResult
func (*RankResult) Descriptor ¶ added in v1.19.0
func (*RankResult) Descriptor() ([]byte, []int)
func (*RankResult) GetAddCount ¶ added in v1.19.0
func (m *RankResult) GetAddCount() int32
func (*RankResult) GetModifyCount ¶ added in v1.19.0
func (m *RankResult) GetModifyCount() int32
func (*RankResult) GetNewRank ¶ added in v1.19.3
func (m *RankResult) GetNewRank() []*RankInfo
func (*RankResult) GetRemoveCount ¶ added in v1.19.0
func (m *RankResult) GetRemoveCount() int32
func (*RankResult) Marshal ¶ added in v1.19.0
func (m *RankResult) Marshal() (dAtA []byte, err error)
func (*RankResult) MarshalTo ¶ added in v1.19.0
func (m *RankResult) MarshalTo(dAtA []byte) (int, error)
func (*RankResult) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *RankResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RankResult) ProtoMessage ¶ added in v1.19.0
func (*RankResult) ProtoMessage()
func (*RankResult) Reset ¶ added in v1.19.0
func (m *RankResult) Reset()
func (*RankResult) Size ¶ added in v1.19.0
func (m *RankResult) Size() (n int)
func (*RankResult) String ¶ added in v1.19.0
func (m *RankResult) String() string
func (*RankResult) Unmarshal ¶ added in v1.19.0
func (m *RankResult) Unmarshal(dAtA []byte) error
func (*RankResult) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *RankResult) XXX_DiscardUnknown()
func (*RankResult) XXX_Marshal ¶ added in v1.19.0
func (m *RankResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RankResult) XXX_Merge ¶ added in v1.19.0
func (m *RankResult) XXX_Merge(src proto.Message)
func (*RankResult) XXX_Size ¶ added in v1.19.0
func (m *RankResult) XXX_Size() int
func (*RankResult) XXX_Unmarshal ¶ added in v1.19.0
func (m *RankResult) XXX_Unmarshal(b []byte) error
type RawRpcCallBack ¶
type RawRpcCallBack func(rawData []byte)
type RequestHandler ¶
type RequestHandler func(Returns interface{}, Err RpcError)
type Responder ¶
type Responder = RequestHandler
type RpcAgent ¶
type RpcAgent struct {
// contains filtered or unexported fields
}
func (*RpcAgent) RemoteAddr ¶
func (*RpcAgent) WriteResponse ¶
func (agent *RpcAgent) WriteResponse(processor IRpcProcessor, serviceMethod string, seq uint64, reply interface{}, rpcError RpcError)
type RpcHandleFinder ¶
type RpcHandleFinder interface {
FindRpcHandler(serviceMethod string) IRpcHandler
}
type RpcHandler ¶
type RpcHandler struct { IRpcHandlerChannel // contains filtered or unexported fields }
func (*RpcHandler) AsyncCall ¶
func (handler *RpcHandler) AsyncCall(serviceMethod string, args interface{}, callback interface{}) error
func (*RpcHandler) AsyncCallNode ¶
func (handler *RpcHandler) AsyncCallNode(nodeId int, serviceMethod string, args interface{}, callback interface{}) error
func (*RpcHandler) Call ¶
func (handler *RpcHandler) Call(serviceMethod string, args interface{}, reply interface{}) error
func (*RpcHandler) CallMethod ¶
func (*RpcHandler) CallNode ¶
func (handler *RpcHandler) CallNode(nodeId int, serviceMethod string, args interface{}, reply interface{}) error
func (*RpcHandler) CastGo ¶
func (handler *RpcHandler) CastGo(serviceMethod string, args interface{}) error
func (*RpcHandler) GetName ¶
func (handler *RpcHandler) GetName() string
func (*RpcHandler) GetRpcHandler ¶
func (handler *RpcHandler) GetRpcHandler() IRpcHandler
func (*RpcHandler) GetRpcServer ¶ added in v1.19.3
func (handler *RpcHandler) GetRpcServer() FuncRpcServer
func (*RpcHandler) Go ¶
func (handler *RpcHandler) Go(serviceMethod string, args interface{}) error
func (*RpcHandler) GoNode ¶
func (handler *RpcHandler) GoNode(nodeId int, serviceMethod string, args interface{}) error
func (*RpcHandler) HandlerRpcRequest ¶
func (handler *RpcHandler) HandlerRpcRequest(request *RpcRequest)
func (*RpcHandler) HandlerRpcResponseCB ¶
func (handler *RpcHandler) HandlerRpcResponseCB(call *Call)
func (*RpcHandler) InitRpcHandler ¶
func (handler *RpcHandler) InitRpcHandler(rpcHandler IRpcHandler, getClientFun FuncRpcClient, getServerFun FuncRpcServer, rpcHandlerChannel IRpcHandlerChannel)
func (*RpcHandler) IsSingleCoroutine ¶
func (handler *RpcHandler) IsSingleCoroutine() bool
func (*RpcHandler) RawGoNode ¶
func (handler *RpcHandler) RawGoNode(rpcProcessorType RpcProcessorType, nodeId int, rpcMethodId uint32, serviceName string, rawArgs []byte) error
func (*RpcHandler) RegRawRpc ¶
func (handler *RpcHandler) RegRawRpc(rpcMethodId uint32, rawRpcCB RawRpcCallBack)
func (*RpcHandler) RegisterRpc ¶
func (handler *RpcHandler) RegisterRpc(rpcHandler IRpcHandler) error
func (*RpcHandler) UnmarshalInParam ¶
func (handler *RpcHandler) UnmarshalInParam(rpcProcessor IRpcProcessor, serviceMethod string, rawRpcMethodId uint32, inParam []byte) (interface{}, error)
type RpcMethodInfo ¶
type RpcMethodInfo struct {
// contains filtered or unexported fields
}
type RpcProcessorType ¶
type RpcProcessorType uint8
const ( RpcProcessorJson RpcProcessorType = 0 RpcProcessorGoGoPB RpcProcessorType = 1 )
type RpcRequest ¶
type RpcRequest struct { RpcRequestData IRpcRequestData // contains filtered or unexported fields }
func MakeRpcRequest ¶
func MakeRpcRequest(rpcProcessor IRpcProcessor, seq uint64, rpcMethodId uint32, serviceMethod string, noReply bool, inParam []byte) *RpcRequest
func (*RpcRequest) Clear ¶
func (slf *RpcRequest) Clear() *RpcRequest
func (*RpcRequest) IsRef ¶
func (slf *RpcRequest) IsRef() bool
func (*RpcRequest) Ref ¶
func (slf *RpcRequest) Ref()
func (*RpcRequest) Reset ¶
func (slf *RpcRequest) Reset()
func (*RpcRequest) UnRef ¶
func (slf *RpcRequest) UnRef()
type RpcResponse ¶
type RpcResponse struct {
RpcResponseData IRpcResponseData
}
func (*RpcResponse) Clear ¶
func (rpcResponse *RpcResponse) Clear() *RpcResponse
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Init ¶
func (server *Server) Init(rpcHandleFinder RpcHandleFinder)
type ServiceDiscoverReq ¶
type ServiceDiscoverReq struct { NodeInfo *NodeInfo `protobuf:"bytes,1,opt,name=nodeInfo,proto3" json:"nodeInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Client->Master
func (*ServiceDiscoverReq) Descriptor ¶
func (*ServiceDiscoverReq) Descriptor() ([]byte, []int)
func (*ServiceDiscoverReq) GetNodeInfo ¶
func (m *ServiceDiscoverReq) GetNodeInfo() *NodeInfo
func (*ServiceDiscoverReq) Marshal ¶
func (m *ServiceDiscoverReq) Marshal() (dAtA []byte, err error)
func (*ServiceDiscoverReq) MarshalTo ¶
func (m *ServiceDiscoverReq) MarshalTo(dAtA []byte) (int, error)
func (*ServiceDiscoverReq) MarshalToSizedBuffer ¶
func (m *ServiceDiscoverReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServiceDiscoverReq) ProtoMessage ¶
func (*ServiceDiscoverReq) ProtoMessage()
func (*ServiceDiscoverReq) Reset ¶
func (m *ServiceDiscoverReq) Reset()
func (*ServiceDiscoverReq) Size ¶
func (m *ServiceDiscoverReq) Size() (n int)
func (*ServiceDiscoverReq) String ¶
func (m *ServiceDiscoverReq) String() string
func (*ServiceDiscoverReq) Unmarshal ¶
func (m *ServiceDiscoverReq) Unmarshal(dAtA []byte) error
func (*ServiceDiscoverReq) XXX_DiscardUnknown ¶
func (m *ServiceDiscoverReq) XXX_DiscardUnknown()
func (*ServiceDiscoverReq) XXX_Marshal ¶
func (m *ServiceDiscoverReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServiceDiscoverReq) XXX_Merge ¶
func (m *ServiceDiscoverReq) XXX_Merge(src proto.Message)
func (*ServiceDiscoverReq) XXX_Size ¶
func (m *ServiceDiscoverReq) XXX_Size() int
func (*ServiceDiscoverReq) XXX_Unmarshal ¶
func (m *ServiceDiscoverReq) XXX_Unmarshal(b []byte) error
type SetSortAndExtendData ¶ added in v1.19.3
type SetSortAndExtendData struct { IsSortData bool `protobuf:"varint,1,opt,name=IsSortData,proto3" json:"IsSortData,omitempty"` Pos int32 `protobuf:"varint,2,opt,name=Pos,proto3" json:"Pos,omitempty"` Data int64 `protobuf:"varint,3,opt,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetSortAndExtendData) Descriptor ¶ added in v1.19.3
func (*SetSortAndExtendData) Descriptor() ([]byte, []int)
func (*SetSortAndExtendData) GetData ¶ added in v1.19.3
func (m *SetSortAndExtendData) GetData() int64
func (*SetSortAndExtendData) GetIsSortData ¶ added in v1.19.3
func (m *SetSortAndExtendData) GetIsSortData() bool
func (*SetSortAndExtendData) GetPos ¶ added in v1.19.3
func (m *SetSortAndExtendData) GetPos() int32
func (*SetSortAndExtendData) Marshal ¶ added in v1.19.3
func (m *SetSortAndExtendData) Marshal() (dAtA []byte, err error)
func (*SetSortAndExtendData) MarshalTo ¶ added in v1.19.3
func (m *SetSortAndExtendData) MarshalTo(dAtA []byte) (int, error)
func (*SetSortAndExtendData) MarshalToSizedBuffer ¶ added in v1.19.3
func (m *SetSortAndExtendData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetSortAndExtendData) ProtoMessage ¶ added in v1.19.3
func (*SetSortAndExtendData) ProtoMessage()
func (*SetSortAndExtendData) Reset ¶ added in v1.19.3
func (m *SetSortAndExtendData) Reset()
func (*SetSortAndExtendData) Size ¶ added in v1.19.3
func (m *SetSortAndExtendData) Size() (n int)
func (*SetSortAndExtendData) String ¶ added in v1.19.3
func (m *SetSortAndExtendData) String() string
func (*SetSortAndExtendData) Unmarshal ¶ added in v1.19.3
func (m *SetSortAndExtendData) Unmarshal(dAtA []byte) error
func (*SetSortAndExtendData) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *SetSortAndExtendData) XXX_DiscardUnknown()
func (*SetSortAndExtendData) XXX_Marshal ¶ added in v1.19.3
func (m *SetSortAndExtendData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetSortAndExtendData) XXX_Merge ¶ added in v1.19.3
func (m *SetSortAndExtendData) XXX_Merge(src proto.Message)
func (*SetSortAndExtendData) XXX_Size ¶ added in v1.19.3
func (m *SetSortAndExtendData) XXX_Size() int
func (*SetSortAndExtendData) XXX_Unmarshal ¶ added in v1.19.3
func (m *SetSortAndExtendData) XXX_Unmarshal(b []byte) error
type SubscribeDiscoverNotify ¶
type SubscribeDiscoverNotify struct { MasterNodeId int32 `protobuf:"varint,1,opt,name=MasterNodeId,proto3" json:"MasterNodeId,omitempty"` IsFull bool `protobuf:"varint,2,opt,name=IsFull,proto3" json:"IsFull,omitempty"` DelNodeId int32 `protobuf:"varint,3,opt,name=DelNodeId,proto3" json:"DelNodeId,omitempty"` NodeInfo []*NodeInfo `protobuf:"bytes,4,rep,name=nodeInfo,proto3" json:"nodeInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Master->Client
func (*SubscribeDiscoverNotify) Descriptor ¶
func (*SubscribeDiscoverNotify) Descriptor() ([]byte, []int)
func (*SubscribeDiscoverNotify) GetDelNodeId ¶
func (m *SubscribeDiscoverNotify) GetDelNodeId() int32
func (*SubscribeDiscoverNotify) GetIsFull ¶
func (m *SubscribeDiscoverNotify) GetIsFull() bool
func (*SubscribeDiscoverNotify) GetMasterNodeId ¶
func (m *SubscribeDiscoverNotify) GetMasterNodeId() int32
func (*SubscribeDiscoverNotify) GetNodeInfo ¶
func (m *SubscribeDiscoverNotify) GetNodeInfo() []*NodeInfo
func (*SubscribeDiscoverNotify) Marshal ¶
func (m *SubscribeDiscoverNotify) Marshal() (dAtA []byte, err error)
func (*SubscribeDiscoverNotify) MarshalTo ¶
func (m *SubscribeDiscoverNotify) MarshalTo(dAtA []byte) (int, error)
func (*SubscribeDiscoverNotify) MarshalToSizedBuffer ¶
func (m *SubscribeDiscoverNotify) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubscribeDiscoverNotify) ProtoMessage ¶
func (*SubscribeDiscoverNotify) ProtoMessage()
func (*SubscribeDiscoverNotify) Reset ¶
func (m *SubscribeDiscoverNotify) Reset()
func (*SubscribeDiscoverNotify) Size ¶
func (m *SubscribeDiscoverNotify) Size() (n int)
func (*SubscribeDiscoverNotify) String ¶
func (m *SubscribeDiscoverNotify) String() string
func (*SubscribeDiscoverNotify) Unmarshal ¶
func (m *SubscribeDiscoverNotify) Unmarshal(dAtA []byte) error
func (*SubscribeDiscoverNotify) XXX_DiscardUnknown ¶
func (m *SubscribeDiscoverNotify) XXX_DiscardUnknown()
func (*SubscribeDiscoverNotify) XXX_Marshal ¶
func (m *SubscribeDiscoverNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeDiscoverNotify) XXX_Merge ¶
func (m *SubscribeDiscoverNotify) XXX_Merge(src proto.Message)
func (*SubscribeDiscoverNotify) XXX_Size ¶
func (m *SubscribeDiscoverNotify) XXX_Size() int
func (*SubscribeDiscoverNotify) XXX_Unmarshal ¶
func (m *SubscribeDiscoverNotify) XXX_Unmarshal(b []byte) error
type SubscribeMethod ¶ added in v1.19.0
type SubscribeMethod int32
const ( SubscribeMethod_Method_Custom SubscribeMethod = 0 SubscribeMethod_Method_Last SubscribeMethod = 1 )
func (SubscribeMethod) EnumDescriptor ¶ added in v1.19.0
func (SubscribeMethod) EnumDescriptor() ([]byte, []int)
func (SubscribeMethod) String ¶ added in v1.19.0
func (x SubscribeMethod) String() string
type SubscribeType ¶ added in v1.19.0
type SubscribeType int32
const ( SubscribeType_Subscribe SubscribeType = 0 SubscribeType_Unsubscribe SubscribeType = 1 )
func (SubscribeType) EnumDescriptor ¶ added in v1.19.0
func (SubscribeType) EnumDescriptor() ([]byte, []int)
func (SubscribeType) String ¶ added in v1.19.0
func (x SubscribeType) String() string
type TriggerRpcConnEvent ¶ added in v1.19.3
type UpdateRankData ¶ added in v1.19.3
type UpdateRankData struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` Key uint64 `protobuf:"varint,2,opt,name=Key,proto3" json:"Key,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
用于单独刷新排行榜数据
func (*UpdateRankData) Descriptor ¶ added in v1.19.3
func (*UpdateRankData) Descriptor() ([]byte, []int)
func (*UpdateRankData) GetData ¶ added in v1.19.3
func (m *UpdateRankData) GetData() []byte
func (*UpdateRankData) GetKey ¶ added in v1.19.3
func (m *UpdateRankData) GetKey() uint64
func (*UpdateRankData) GetRankId ¶ added in v1.19.3
func (m *UpdateRankData) GetRankId() uint64
func (*UpdateRankData) Marshal ¶ added in v1.19.3
func (m *UpdateRankData) Marshal() (dAtA []byte, err error)
func (*UpdateRankData) MarshalTo ¶ added in v1.19.3
func (m *UpdateRankData) MarshalTo(dAtA []byte) (int, error)
func (*UpdateRankData) MarshalToSizedBuffer ¶ added in v1.19.3
func (m *UpdateRankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateRankData) ProtoMessage ¶ added in v1.19.3
func (*UpdateRankData) ProtoMessage()
func (*UpdateRankData) Reset ¶ added in v1.19.3
func (m *UpdateRankData) Reset()
func (*UpdateRankData) Size ¶ added in v1.19.3
func (m *UpdateRankData) Size() (n int)
func (*UpdateRankData) String ¶ added in v1.19.3
func (m *UpdateRankData) String() string
func (*UpdateRankData) Unmarshal ¶ added in v1.19.3
func (m *UpdateRankData) Unmarshal(dAtA []byte) error
func (*UpdateRankData) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *UpdateRankData) XXX_DiscardUnknown()
func (*UpdateRankData) XXX_Marshal ¶ added in v1.19.3
func (m *UpdateRankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRankData) XXX_Merge ¶ added in v1.19.3
func (m *UpdateRankData) XXX_Merge(src proto.Message)
func (*UpdateRankData) XXX_Size ¶ added in v1.19.3
func (m *UpdateRankData) XXX_Size() int
func (*UpdateRankData) XXX_Unmarshal ¶ added in v1.19.3
func (m *UpdateRankData) XXX_Unmarshal(b []byte) error
type UpdateRankDataRet ¶ added in v1.19.3
type UpdateRankDataRet struct { Ret bool `protobuf:"varint,1,opt,name=Ret,proto3" json:"Ret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateRankDataRet) Descriptor ¶ added in v1.19.3
func (*UpdateRankDataRet) Descriptor() ([]byte, []int)
func (*UpdateRankDataRet) GetRet ¶ added in v1.19.3
func (m *UpdateRankDataRet) GetRet() bool
func (*UpdateRankDataRet) Marshal ¶ added in v1.19.3
func (m *UpdateRankDataRet) Marshal() (dAtA []byte, err error)
func (*UpdateRankDataRet) MarshalTo ¶ added in v1.19.3
func (m *UpdateRankDataRet) MarshalTo(dAtA []byte) (int, error)
func (*UpdateRankDataRet) MarshalToSizedBuffer ¶ added in v1.19.3
func (m *UpdateRankDataRet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateRankDataRet) ProtoMessage ¶ added in v1.19.3
func (*UpdateRankDataRet) ProtoMessage()
func (*UpdateRankDataRet) Reset ¶ added in v1.19.3
func (m *UpdateRankDataRet) Reset()
func (*UpdateRankDataRet) Size ¶ added in v1.19.3
func (m *UpdateRankDataRet) Size() (n int)
func (*UpdateRankDataRet) String ¶ added in v1.19.3
func (m *UpdateRankDataRet) String() string
func (*UpdateRankDataRet) Unmarshal ¶ added in v1.19.3
func (m *UpdateRankDataRet) Unmarshal(dAtA []byte) error
func (*UpdateRankDataRet) XXX_DiscardUnknown ¶ added in v1.19.3
func (m *UpdateRankDataRet) XXX_DiscardUnknown()
func (*UpdateRankDataRet) XXX_Marshal ¶ added in v1.19.3
func (m *UpdateRankDataRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRankDataRet) XXX_Merge ¶ added in v1.19.3
func (m *UpdateRankDataRet) XXX_Merge(src proto.Message)
func (*UpdateRankDataRet) XXX_Size ¶ added in v1.19.3
func (m *UpdateRankDataRet) XXX_Size() int
func (*UpdateRankDataRet) XXX_Unmarshal ¶ added in v1.19.3
func (m *UpdateRankDataRet) XXX_Unmarshal(b []byte) error
type UpsetRankData ¶ added in v1.19.0
type UpsetRankData struct { RankId uint64 `protobuf:"varint,1,opt,name=RankId,proto3" json:"RankId,omitempty"` RankDataList []*RankData `protobuf:"bytes,2,rep,name=RankDataList,proto3" json:"RankDataList,omitempty"` FindNewRank bool `protobuf:"varint,3,opt,name=FindNewRank,proto3" json:"FindNewRank,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpsetRankData 更新排行榜数据
func (*UpsetRankData) Descriptor ¶ added in v1.19.0
func (*UpsetRankData) Descriptor() ([]byte, []int)
func (*UpsetRankData) GetFindNewRank ¶ added in v1.19.3
func (m *UpsetRankData) GetFindNewRank() bool
func (*UpsetRankData) GetRankDataList ¶ added in v1.19.0
func (m *UpsetRankData) GetRankDataList() []*RankData
func (*UpsetRankData) GetRankId ¶ added in v1.19.0
func (m *UpsetRankData) GetRankId() uint64
func (*UpsetRankData) Marshal ¶ added in v1.19.0
func (m *UpsetRankData) Marshal() (dAtA []byte, err error)
func (*UpsetRankData) MarshalTo ¶ added in v1.19.0
func (m *UpsetRankData) MarshalTo(dAtA []byte) (int, error)
func (*UpsetRankData) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *UpsetRankData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpsetRankData) ProtoMessage ¶ added in v1.19.0
func (*UpsetRankData) ProtoMessage()
func (*UpsetRankData) Reset ¶ added in v1.19.0
func (m *UpsetRankData) Reset()
func (*UpsetRankData) Size ¶ added in v1.19.0
func (m *UpsetRankData) Size() (n int)
func (*UpsetRankData) String ¶ added in v1.19.0
func (m *UpsetRankData) String() string
func (*UpsetRankData) Unmarshal ¶ added in v1.19.0
func (m *UpsetRankData) Unmarshal(dAtA []byte) error
func (*UpsetRankData) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *UpsetRankData) XXX_DiscardUnknown()
func (*UpsetRankData) XXX_Marshal ¶ added in v1.19.0
func (m *UpsetRankData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpsetRankData) XXX_Merge ¶ added in v1.19.0
func (m *UpsetRankData) XXX_Merge(src proto.Message)
func (*UpsetRankData) XXX_Size ¶ added in v1.19.0
func (m *UpsetRankData) XXX_Size() int
func (*UpsetRankData) XXX_Unmarshal ¶ added in v1.19.0
func (m *UpsetRankData) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.