usecases

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserUseCase

type UserUseCase interface {
	// Pre-registration new user
	PreRegisterUser(ctx context.Context, preRegistration *schemas.PreRegistrationInput) error
	// Verify OTP code
	VerifyOTPCode(ctx context.Context, email, code string) error
	// Login user
	Login(ctx context.Context, email, password string) (string, error)
}

Interface for user use case

func NewUserUseCase

func NewUserUseCase(
	userRepository repository.UserRepository, emailSender email.EmailSender, tokenBLacklist *auth.Blacklist, validatePassword validator.ValidatePasswordFunc,
) UserUseCase

NewUserUseCase creates a new user use case

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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