routes

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in v1.2.0

func Check(w http.ResponseWriter, r *http.Request)

Index displays a simple homepage

func Dashboard

func Dashboard(w http.ResponseWriter, r *http.Request)

Dashboard page is accessible to logged in users only, the proptection for that is provide by KratoAuthMiddleware middleware

func Error500

func Error500(w http.ResponseWriter, _ *http.Request, err error)

ErrorHandler renders a response when an error occurs

func Errors

func Errors(w http.ResponseWriter, r *http.Request)

Errors handler print the authentication service errors

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index displays a simple homepage

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login handler displays the login screen

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Logout handler clears the session & logs the user out

func Recovery

func Recovery(w http.ResponseWriter, r *http.Request)

Recovery handler displays the recovery screen, which allows the user to enter and email address, the email contains a link to authenticate the user

func Registration

func Registration(w http.ResponseWriter, r *http.Request)

Registration directs the user to a page where they can sign-up or register to use the site

func Settings

func Settings(w http.ResponseWriter, r *http.Request)

Settings handler displays the Settings screen that allows the user to change their details

func Verification added in v1.1.0

func Verification(w http.ResponseWriter, r *http.Request)

Verification handler validate registration

func Welcome

func Welcome(w http.ResponseWriter, r *http.Request)

Home displays a simple homepage

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL