domain

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package domain holds domain errors and ports. It has no dependencies on infrastructure (database, HTTP, config) so use cases can depend only on domain.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound     = errors.New("not found")
	ErrUnauthorized = errors.New("unauthorized")
)

Sentinel errors for use cases and handlers. Return these (e.g. with fmt.Errorf("context: %w", ErrNotFound)) so handlers can map to HTTP responses.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package port defines repository and other ports (interfaces) used by use cases.
Package port defines repository and other ports (interfaces) used by use cases.

Jump to

Keyboard shortcuts

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