Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestHeader ¶
RequestHeader 默认请求头.
type ResponseHeader ¶
ResponseHeader 默认返回头.
func (*ResponseHeader) InternalError ¶
func (h *ResponseHeader) InternalError(format string, argv ...interface{})
InternalError 返回因为内部错误导致的异常信息(500).
func (*ResponseHeader) InvalidRequest ¶
func (h *ResponseHeader) InvalidRequest(format string, argv ...interface{})
InvalidRequest 返回因为请求参数错误导致的异常信息(400).
func (*ResponseHeader) SetError ¶
func (h *ResponseHeader) SetError(status int, format string, argv ...interface{})
SetError 返回错误信息.
Click to show internal directories.
Click to hide internal directories.