Services

package
v0.0.0-...-4c051f6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(user Models.User) (int, error)

*

  • Create a user.

func GenerateToken

func GenerateToken(user Models.User, expires time.Duration) (string, error)

func GetUserByEmail

func GetUserByEmail(email string) (Models.User, error)

func GetUserById

func GetUserById(id int) (Models.User, error)

*

  • Get a user by id.

func UpdateUser

func UpdateUser(user Models.User) error

func VerifyToken

func VerifyToken(token string, claims *Models.Claims) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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