Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK int32 = 0 // is ok SessionUIDNotBind int32 = 10 // session uid not bind DiscoveryNotFoundNode int32 = 11 // discovery not fond node id RPCNetError int32 = 20 // rpc net error RPCUnmarshalError int32 = 21 // rpc data unmarshal error RPCMarshalError int32 = 22 // rpc data marshal error RPCRemoteExecuteError int32 = 23 // rpc remote method executor error RPCReplyParamsError int32 = 24 // rpc reply parameter error RPCRouteDecodeError int32 = 25 // rpc route decode error RPCRouteHashError int32 = 26 // rpc route hash error RPCNotImplement int32 = 27 // rpc method not implement RPCHandlerError int32 = 28 // rpc get handler error )
Variables ¶
This section is empty.
Functions ¶
func GetCodeResult ¶
func GetCodeResult(code int32) *cherryProto.CodeResult
func GetMessage ¶
Types ¶
type DataResult ¶
type DataResult struct { Code int32 `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
func NewDataResult ¶
func NewDataResult(code int32) DataResult
func (*DataResult) SetCode ¶
func (p *DataResult) SetCode(code int32)
Click to show internal directories.
Click to hide internal directories.