user

package
v0.0.0-...-9fc0fad Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c echo.Context) error

Login is a handler func that logs in a user

func RunServer

func RunServer()

RunServer runs user server

func Signup

func Signup(c echo.Context) error

Signup is a handler func that signs up a new user

Types

type CustomClaims

type CustomClaims struct {
	ID    string `json:"id"`
	Admin bool   `json:"admin"`
	jwt.StandardClaims
}

CustomClaims for jwt configuration

Jump to

Keyboard shortcuts

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