Documentation
¶
Overview ¶
Package example is the public facade for the example domain. Register is the only symbol other packages may call — everything else lives under example/internal and is compiler-sealed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registered ¶
type Registered struct{}
Registered is a marker wire depends on to sequence Register's side-effecting call into the generated injector.
func ProvideRegistration ¶
ProvideRegistration calls Register and returns a marker wire can depend on to guarantee the registration ran.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package domain holds the example domain's public entities, value objects, domain errors, and repository ports.
|
Package domain holds the example domain's public entities, value objects, domain errors, and repository ports. |
|
internal
|
|
|
application
Package application holds the example domain's use cases.
|
Package application holds the example domain's use cases. |
|
infrastructure/memory
Package memory provides an in-memory adapter for the example domain's repository ports.
|
Package memory provides an in-memory adapter for the example domain's repository ports. |
|
infrastructure/postgres
Package postgres provides the example domain's Postgres-backed adapter for its repository ports.
|
Package postgres provides the example domain's Postgres-backed adapter for its repository ports. |
|
presentation
Package presentation exposes the example domain's HTTP operations on a shared huma.API, translating domain errors into HTTP status codes.
|
Package presentation exposes the example domain's HTTP operations on a shared huma.API, translating domain errors into HTTP status codes. |
Click to show internal directories.
Click to hide internal directories.