controller

package
v0.0.0-...-c1e9038 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forbidden

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

func Index

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

Index renders the index page chore: set to login page

func Login

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

Login authenticates user login credentials

func Logout

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

Logout revokes authentication for a user

func Secret

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

Secret renders a hidden message chore: To be removed

func Signin

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

Signin renders the signin page

func Signup

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

Signup sWitches between requests get and post in SignupGet and SignupPost

func SignupGet

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

SignupGet renders the signup ppage

func SignupPost

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

SignupPost registers a new user in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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