domain

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 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")
)

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.

Jump to

Keyboard shortcuts

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