users

package
v0.0.0-...-041f5a1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(user gogios.User, conf *config.Config) error

CreateUser - Add a new user to configured gogios databases

func JwtVerify

func JwtVerify(next http.Handler) http.Handler

JwtVerify check the the JWT token provided in the Headers is valid and current

func Login

func Login(username, password string, db gogios.Database) map[string]interface{}

Login checks the provided username/password combo against the first configured database

Types

type Token

type Token struct {
	UserID   uint
	Name     string
	Username string
	*jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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