Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body map[string]interface{}
func NewResponse ¶
func NewResponse(data interface{}, kv ...interface{}) Body
type ErrorResponse ¶
type ErrorResponse struct { Status int `json:"status,omitempty"` Err string `json:"error"` Description string `json:"error_description"` }
func ErrJson ¶
func ErrJson(message string, err error) ErrorResponse
func ErrJsonWithStatus ¶
func ErrJsonWithStatus(status int, message string, err error) ErrorResponse
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
func (ErrorResponse) IsError ¶
func (e ErrorResponse) IsError() bool
Click to show internal directories.
Click to hide internal directories.