domain

package
v0.3.2 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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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