usecase

package
v0.0.0-...-8c7e783 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 13 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 {
	Login(ctx context.Context, req *dto.LoginRequest) (*dto.LoginResponse, error)
	Register(ctx context.Context, req *dto.RegisterRequest) (*dto.RegisterResponse, error)
	Verify(ctx context.Context, req *dto.VerificationRequest) (*dto.VerificationResponse, error)
	ResendVerification(ctx context.Context, req *dto.ResendVerificationRequest) error
}

func NewUserUseCase

func NewUserUseCase(
	hasher encryptutils.Hasher,
	jwtUtil jwtutils.JwtUtil,
	dataStore repository.DataStore,
	redisRepository repository.RedisRepository,
	sendVerificationProducer mq.AMQPProducer,
	accountVerifiedProducer mq.AMQPProducer,
) UserUseCase

Jump to

Keyboard shortcuts

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