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
Click to show internal directories.
Click to hide internal directories.