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 Error401na(w http.ResponseWriter, r *http.Request)
- 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 Error400 ¶
func Error400(w http.ResponseWriter, r *http.Request, e error)
Error400 400 Bad Request returned when the requesed url param for /login or /logout is bd
func Error401 ¶
func Error401(w http.ResponseWriter, r *http.Request, e error)
Error401 the standard error this is captured by nginx, which converts the 401 into 302 to the login page
func Error401na ¶
func Error401na(w http.ResponseWriter, r *http.Request)
Error401na send 401 not authorized
func Redirect302 ¶
func Redirect302(w http.ResponseWriter, r *http.Request, rURL string)
Redirect302 302 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.