Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
app
command
|
|
|
cli
command
|
|
|
gen
command
Command gen scaffolds a CRUD module: biz entity + repo interface, data repo implementation, service handlers, request structs and a migration.
|
Command gen scaffolds a CRUD module: biz entity + repo interface, data repo implementation, service handlers, request structs and a migration. |
|
internal
|
|
|
bootstrap
Package bootstrap provides the boot-time infrastructure; business modules never import it.
|
Package bootstrap provides the boot-time infrastructure; business modules never import it. |
|
order
Package order is the order module's assembly.
|
Package order is the order module's assembly. |
|
order/biz
Package biz holds the order module's business logic; cross-module needs are interfaces defined here (Users), so it never imports another module.
|
Package biz holds the order module's business logic; cross-module needs are interfaces defined here (Users), so it never imports another module. |
|
order/service
Package service adapts HTTP to the usecase: bind, validate, delegate, respond.
|
Package service adapts HTTP to the usecase: bind, validate, delegate, respond. |
|
pkg/apperr
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. |
|
pkg/event
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. |
|
pkg/job
Package job is the scheduler contribution contract shared by every module.
|
Package job is the scheduler contribution contract shared by every module. |
|
pkg/registry
Package registry collects same-kind contributions (routes, commands, jobs) registered under the naming conventions below — do's stand-in for value groups.
|
Package registry collects same-kind contributions (routes, commands, jobs) registered under the naming conventions below — do's stand-in for value groups. |
|
pkg/transport
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. |
|
server
Package server assembles the HTTP layer from the modules' route contributions and serves the non-domain endpoints.
|
Package server assembles the HTTP layer from the modules' route contributions and serves the non-domain endpoints. |
|
user
Package user is the user module's assembly.
|
Package user is the user module's assembly. |
|
user/biz
Package biz holds the user module's transport-independent business logic; other modules depend on it, never on the data layer.
|
Package biz holds the user module's transport-independent business logic; other modules depend on it, never on the data layer. |
|
user/service
Package service adapts HTTP and CLI to the usecase: bind, validate, delegate, respond.
|
Package service adapts HTTP and CLI to the usecase: bind, validate, delegate, respond. |
|
mocks
|
|
Click to show internal directories.
Click to hide internal directories.