Documentation ¶
Index ¶
Constants ¶
View Source
const ErrCodeBadRequest = 400
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
func (ErrorResponse) JSON ¶
func (s ErrorResponse) JSON() string
type SuccessOK ¶
type SuccessOK struct {
Status string `json:"status"`
}
func NewSuccessOK ¶
func NewSuccessOK() SuccessOK
type SuccessResponse ¶
type SuccessResponse struct { Result interface{} `json:"result"` Code int `json:"code"` }
func (SuccessResponse) JSON ¶
func (s SuccessResponse) JSON() string
Click to show internal directories.
Click to hide internal directories.