controllers

package
v0.0.0-...-3dd0763 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Secret            = "secret"
	MockPassword      = "password"
	ExpirationMinutes = 5
)

Variables

This section is empty.

Functions

func HandleEditUser

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

func HandleGetUser

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

func HandleLogin

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

func HandleNewUser

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

Types

type Credentials

type Credentials struct {
	Email    string `json:email`
	Password string `json:password`
}

type CustomClaims

type CustomClaims struct {
	Username string `json:username`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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