Help us shape the future of Go! Take the 2026 Go Developer Survey

usecase

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 6 Imported by: 2

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