Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArithReply ¶
type ArithReply struct {
C int
}
type RemoteResp ¶
type RemoteResp struct { Code consts.ResultCode `json:"code"` Msg string `json:"msg"` Payload interface{} `json:"payload"` }
func (*RemoteResp) Fail ¶
func (result *RemoteResp) Fail(msg string)
func (*RemoteResp) Failf ¶
func (result *RemoteResp) Failf(str string, args ...interface{})
func (*RemoteResp) IsSuccess ¶
func (result *RemoteResp) IsSuccess() bool
func (*RemoteResp) Pass ¶
func (result *RemoteResp) Pass(msg string)
func (*RemoteResp) Passf ¶
func (result *RemoteResp) Passf(str string, args ...interface{})
type Response ¶
type Response struct { Code consts.ResultCode `json:"code"` // Enums consts.ResultCode Msg string `json:"msg,omitempty"` Data interface{} `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.