Documentation
¶
Overview ¶
Package domain defines core domain entities, data transfer objects (DTOs), and sentinel errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // User domain errors ErrUserNotFound = errors.New("AuthService: user not found") ErrEmailAlreadyInUse = errors.New("AuthService: email already in use") ErrInvalidCredentials = errors.New("AuthService: invalid credentials") ErrPasswordTooShort = errors.New("AuthService: password too short") // Session domain errors ErrSessionNotFound = errors.New("AuthService: session not found") ErrSessionExpired = errors.New("AuthService: session expired") // 2FA domain errors ErrTOTPNotFound = errors.New("AuthService: totp secret not found") ErrTOTPAlreadyEnabled = errors.New("AuthService: totp already enabled") ErrTOTPNotEnabled = errors.New("AuthService: totp not enabled") ErrInvalidTOTP = errors.New("AuthService: invalid totp code") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dto provides Data Transfer Objects (Params) for authentication operations.
|
Package dto provides Data Transfer Objects (Params) for authentication operations. |
|
Package entity contains domain data models representing application domain objects.
|
Package entity contains domain data models representing application domain objects. |
Click to show internal directories.
Click to hide internal directories.