models

package
v0.0.0-...-23f2fb9 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	UserID uint
	jwt.StandardClaims
}

Token is the JWT claims struct

type UserCtrls

type UserCtrls struct{}

UserCtrls to control the account model

func (*UserCtrls) Create

func (a *UserCtrls) Create(user db.User) map[string]interface{}

Create function creates a new account

func (*UserCtrls) Login

func (a *UserCtrls) Login(username, password string) map[string]interface{}

Login function

func (*UserCtrls) Validate

func (a *UserCtrls) Validate(user db.User) (map[string]interface{}, bool)

Validate incoming user details...

Jump to

Keyboard shortcuts

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