Documentation ¶
Index ¶
- func BadRequest(message, description string, err error) error
- func InternalServerError(message, description string, err error) error
- func NotFound(message, description string, err error) error
- func ParseBody(r *http.Request, v interface{}) error
- func ResponseAsJSON(w http.ResponseWriter, statusCode int, v interface{})
- func ResponseError(w http.ResponseWriter, httpErr error)
- func ResponseOK(w http.ResponseWriter, v interface{})
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func InternalServerError ¶
func ResponseAsJSON ¶
func ResponseAsJSON(w http.ResponseWriter, statusCode int, v interface{})
func ResponseError ¶
func ResponseError(w http.ResponseWriter, httpErr error)
func ResponseOK ¶
func ResponseOK(w http.ResponseWriter, v interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.