Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPasswordMismatch error = errors.New("password mismatch") ErrInvalidPassword = errors.New("password must be between 8 and 30 characters and contain at least one number, one uppercase letter, one lowercase letter, and one special character") ErrInvalidEmail error = errors.New("invalid email") ErrInternalError error = errors.New("internal error") ErrAlreadyExists = errors.New("resource already exists") ErrInvalidCredentials = errors.New("invalid credentials") ErrNotFound = errors.New("resource not found") ErrInvalidBody = errors.New("invalid request body") )
Functions ¶
This section is empty.
Types ¶
type AuthUseCases ¶
type JWTGenerateParams ¶
type JWTProvider ¶
type LoginParams ¶
type RegisterParams ¶
type User ¶
type User struct { ID uuid.UUID Email Email CreatedAt time.Time UpdatedAt time.Time // contains filtered or unexported fields }
func (*User) ComparePassword ¶
func (*User) SetPassword ¶
type UserUseCases ¶
type UserUseCases interface {
Register(ctx context.Context, params RegisterParams) (User, error)
}
Click to show internal directories.
Click to hide internal directories.