pkg/

directory
v0.0.0-...-3102c27 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT

README

pkg

The pkg directory stores the contracts shared by every module: transport (binding, response envelopes, endpoint declarations), apperr (typed application errors), event (the bus interface), registry (typed Wire collections for routes, commands, jobs, subscriptions and health checks) and job (the scheduler contribution type). Packages here depend on nothing above them — the architecture test enforces it.

Directories

Path Synopsis
Package apperr standardizes client-facing errors: transports map the closed set of kinds — never individual codes — to a status, so modules add codes without touching shared files.
Package apperr standardizes client-facing errors: transports map the closed set of kinds — never individual codes — to a status, so modules add codes without touching shared files.
Package event is the bus contract: modules publish and subscribe without importing each other; the implementation lives in bootstrap.
Package event is the bus contract: modules publish and subscribe without importing each other; the implementation lives in bootstrap.
Package job is the scheduler contribution contract shared by every module.
Package job is the scheduler contribution contract shared by every module.
Package registry defines the typed collections assembled by wire.
Package registry defines the typed collections assembled by wire.
Package transport holds the HTTP helpers shared by every module's service layer: request binding/validation, response envelopes and error mapping.
Package transport holds the HTTP helpers shared by every module's service layer: request binding/validation, response envelopes and error mapping.

Jump to

Keyboard shortcuts

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