Documentation ¶
Index ¶
- func Accepted(w http.ResponseWriter, data interface{}) error
- func BadRequest(w http.ResponseWriter, msg string) error
- func Conflict(w http.ResponseWriter, errors []string) error
- func Created(w http.ResponseWriter, at string, data interface{}) error
- func Forbidden(w http.ResponseWriter) error
- func MethodNotAllwed(w http.ResponseWriter, errors []string) error
- func NoContent(w http.ResponseWriter) error
- func NotFound(w http.ResponseWriter, msg string) error
- func OK(w http.ResponseWriter, data interface{}) error
- func Redirect(w http.ResponseWriter, to string) error
- func Send(w http.ResponseWriter, status int, data interface{}) error
- func ServerError(w http.ResponseWriter) error
- func Unauthorized(w http.ResponseWriter, data interface{}) error
- func UnprocessableEntity(w http.ResponseWriter, data interface{}) error
- func ValidationError(w http.ResponseWriter, errors []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accepted ¶
func Accepted(w http.ResponseWriter, data interface{}) error
func BadRequest ¶
func BadRequest(w http.ResponseWriter, msg string) error
func Forbidden ¶
func Forbidden(w http.ResponseWriter) error
func MethodNotAllwed ¶
func MethodNotAllwed(w http.ResponseWriter, errors []string) error
func NoContent ¶
func NoContent(w http.ResponseWriter) error
func OK ¶
func OK(w http.ResponseWriter, data interface{}) error
func ServerError ¶
func ServerError(w http.ResponseWriter) error
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter, data interface{}) error
func UnprocessableEntity ¶
func UnprocessableEntity(w http.ResponseWriter, data interface{}) error
func ValidationError ¶
func ValidationError(w http.ResponseWriter, errors []string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.