auth

package
v0.0.0-...-82ef3d0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth is the representation of all the auth-related handlers.

func New

func New(c *mongo.Collection) *Auth

New creates an Auth struct.

func (*Auth) LoginGET

func (a *Auth) LoginGET(w http.ResponseWriter, r *http.Request)

LoginGET renders the login form.

func (*Auth) LoginPOST

func (a *Auth) LoginPOST(w http.ResponseWriter, r *http.Request)

LoginPOST logs an user in.

func (*Auth) SignupGET

func (a *Auth) SignupGET(w http.ResponseWriter, r *http.Request)

SignupGET is ...

func (*Auth) SignupPOST

func (a *Auth) SignupPOST(w http.ResponseWriter, r *http.Request)

SignupPOST is ...

Jump to

Keyboard shortcuts

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