authService

package
v0.0.0-...-83330ae Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Authentication
	ErrorEmailAlreadyUsed       = NewError.New("email already used", http.StatusBadRequest)
	ErrorInvalidEmailOrPassword = NewError.New("invalid email or password", http.StatusBadRequest)
	ErrorInvalidAccessToken     = NewError.New("access token invalid or expire", http.StatusBadRequest)
	ErrorInvalidDateFormat      = NewError.New("invalid date format", http.StatusBadRequest)
)

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	Register(ctx context.Context, req dto.AuthRequest) (dto.AuthResponse, error)
}

func New

func New(ar authRepository.AuthRepository, log *logrus.Logger, client *auth.Client) AuthService

Jump to

Keyboard shortcuts

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