application

package
v0.0.0-...-c36622b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RegistrationUseCaseInternalError defines unexpected error during registration
	RegistrationUseCaseInternalError = errors.New("registration.internalError")
	// RegistrationUseCaseUserAlreadyCreated defines an error when such user is already created
	RegistrationUseCaseUserAlreadyCreated = errors.New("registration.userAlreadyCreated")
)

Functions

This section is empty.

Types

type RegistrationUseCase

type RegistrationUseCase interface {
	Execute(ctx context.Context, user domain.User, password string) (*domain.User, error)
}

RegistrationUseCase defines a contract for registration use case

func NewRegistrationUseCase

func NewRegistrationUseCase(repository domain.UserRepository) RegistrationUseCase

NewRegistrationUseCase creates new defaultRegistrationUseCase

Jump to

Keyboard shortcuts

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