service

package
v0.0.0-...-b79ed68 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserService

func NewUserService(repository repository.UserRepository) *userService

Types

type JWTService

type JWTService interface {
	GenerateToken(user entity.Users) response.ResponseCredential
	ValidateToken(token string) (*jwt.Token, error)
}

func NewJWTService

func NewJWTService() JWTService

type UserService

type UserService interface {
	CreateUser(req request.RequestAuthLogin) (entity.Users, error)
	VerifyCredential(username string, password string) interface{}
}

Jump to

Keyboard shortcuts

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