Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, err error)
Types ¶
type HttpStatus ¶
type HttpStatus struct { Status int `json:"status"` Message string `json:"message"` Body interface{} `json:"body"` }
func Http200 ¶
func Http200(message string, body interface{}) (int, HttpStatus)
func Http400 ¶
func Http400(message string, body interface{}) (int, HttpStatus)
func Http401 ¶
func Http401(message string, body interface{}) (int, HttpStatus)
func Http500 ¶
func Http500(message string, body interface{}) (int, HttpStatus)
Click to show internal directories.
Click to hide internal directories.