Documentation ¶
Index ¶
- func HandleBadRequest(w http.ResponseWriter, err error)
- func HandleError(w http.ResponseWriter, err error)
- func HandleInternalServerError(w http.ResponseWriter, err error)
- func HandleNotMethodAllowed(w http.ResponseWriter)
- func Health(w http.ResponseWriter, _ *http.Request)
- func WriteJSON(w http.ResponseWriter, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBadRequest ¶
func HandleBadRequest(w http.ResponseWriter, err error)
HandleBadRequest ...
func HandleInternalServerError ¶
func HandleInternalServerError(w http.ResponseWriter, err error)
HandleInternalServerError ...
func HandleNotMethodAllowed ¶
func HandleNotMethodAllowed(w http.ResponseWriter)
HandleNotMethodAllowed ...
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, v interface{}) error
WriteJSON response status code will be written automatically if there is an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.