domain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 1 Imported by: 0

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")

	// Interceptor and pipeline domain errors
	ErrUserBanned         = errors.New("AuthService: user is banned")
	ErrTenantInactive     = errors.New("AuthService: tenant is inactive")
	ErrOperationCancelled = errors.New("AuthService: operation cancelled by interceptor")

	// MFA and Step-Up challenge errors
	ErrMFAEngineNotConfigured = errors.New("AuthService: multi-factor authentication engine is not configured")
	ErrInvalidChallengeToken  = errors.New("AuthService: invalid challenge token")
	ErrChallengeExpired       = errors.New("AuthService: challenge token has expired")
)

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.
Package repository defines centralized persistent data storage contracts for the core domain entities.
Package repository defines centralized persistent data storage contracts for the core domain entities.

Jump to

Keyboard shortcuts

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