Documentation ¶
Index ¶
Constants ¶
View Source
const ( RPCEmptyReqCode = 1 RPCDBErrorCode = 2 RPCSuccessCode = 9 )
Variables ¶
View Source
var (
RPCEmptyRequestErr = errors.New("Empty RPC Request")
)
Functions ¶
This section is empty.
Types ¶
type ServiceError ¶
type ServiceError struct { Srv string `json:"service"` Err error `json:"error"` Code int32 `json:"code"` Msg string `json:"message"` }
func (ServiceError) Error ¶
func (e ServiceError) Error() string
Click to show internal directories.
Click to hide internal directories.