Documentation
¶
Index ¶
- func AddRoute(router *chi.Mux, route Route)
- func AddRoutes(router *chi.Mux, routes []Route)
- func BadRequest(r *http.Request, w http.ResponseWriter, content interface{})
- func InternalServerError(r *http.Request, w http.ResponseWriter, content interface{})
- func NoContent(w http.ResponseWriter)
- func NotFound(w http.ResponseWriter)
- func Ok(r *http.Request, w http.ResponseWriter, content interface{})
- func SetResponse(w http.ResponseWriter, r *http.Request, status int, content interface{})
- func Unauthorized(w http.ResponseWriter)
- type Method
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(r *http.Request, w http.ResponseWriter, content interface{})
func InternalServerError ¶
func InternalServerError(r *http.Request, w http.ResponseWriter, content interface{})
func NoContent ¶
func NoContent(w http.ResponseWriter)
func NotFound ¶
func NotFound(w http.ResponseWriter)
func SetResponse ¶
func SetResponse(w http.ResponseWriter, r *http.Request, status int, content interface{})
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter)
Types ¶
Click to show internal directories.
Click to hide internal directories.