Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PageRender ¶
func PageRender( w http.ResponseWriter, opts PageOptions, )
PageRender writes the provided HTML to the ResponseWriter using a standard status code and content type. If writing fails and a logger is provided, it logs the supplied error message together with the error.
func RedirectAuthKnightIfActive ¶ added in v0.35.0
func RedirectAuthKnightIfActive(w http.ResponseWriter, r *http.Request, a types.AuthSharedInterface) bool
RedirectAuthKnightIfActive checks if the auth instance is in AuthKnight mode and redirects to AuthKnight's hosted login if so. Returns true if a redirect was performed, false otherwise.
Types ¶
Click to show internal directories.
Click to hide internal directories.