usecase

package
v0.0.0-...-67d514a Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserNotFound  = errors.New("user not found")
	WrongPassword = errors.New("wrong password")
)

Functions

func GenerateToken

func GenerateToken(user *model.User, secretKey string) (string, error)

GenerateToken generate a json web token

func NewUserUsecase

func NewUserUsecase(userRepo user.Repository, secretKey string) user.Usecase

NewUserUsecase creates a new user.Usecase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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