Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func DecodeError( w http.ResponseWriter, r *http.Request, l *logger.Logger, apiErr string, code int, )
DecodeError handles API errors.
Types ¶
type APIMessage ¶
type APIMessage struct { Message string `json:"message,omitempty"` Status int `json:"status,omitempty"` }
APIMessage is a struct for generic JSON response.
Click to show internal directories.
Click to hide internal directories.