Documentation ¶
Index ¶
- func Configure()
- func Error400(w http.ResponseWriter, r *http.Request, e error)
- func Error401(w http.ResponseWriter, r *http.Request, e error)
- func Error401HTTP(w http.ResponseWriter, r *http.Request, e error)
- func Error403(w http.ResponseWriter, r *http.Request, e error)
- func Error500(w http.ResponseWriter, r *http.Request, e error)
- func OK200(w http.ResponseWriter, r *http.Request)
- func Redirect302(w http.ResponseWriter, r *http.Request, rURL string)
- func RenderIndex(w http.ResponseWriter, msg string)
- type Index
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error401 ¶
func Error401(w http.ResponseWriter, r *http.Request, e error)
Error401 Unauthorized, the standard error returned when failing /validate this is captured by nginx, which converts the 401 into 302 to the login page
func Error401HTTP ¶ added in v0.27.0
func Error401HTTP(w http.ResponseWriter, r *http.Request, e error)
Error401HTTP
func Error403 ¶ added in v0.13.0
func Error403(w http.ResponseWriter, r *http.Request, e error)
Error403 Forbidden if there's an error during /auth or if they don't pass validation in /auth
func Error500 ¶ added in v0.21.0
func Error500(w http.ResponseWriter, r *http.Request, e error)
Error500 Internal Error something is not right, hopefully this never happens
func Redirect302 ¶
func Redirect302(w http.ResponseWriter, r *http.Request, rURL string)
Redirect302 redirect to the specificed rURL
func RenderIndex ¶
func RenderIndex(w http.ResponseWriter, msg string)
RenderIndex render the response as an HTML page, mostly used in testing
Types ¶
Click to show internal directories.
Click to hide internal directories.