Documentation
¶
Overview ¶
Package adapter wires the hexagonal adapter layer into Uber FX.
It groups the inbound (primary), outbound (secondary), and shared (common) adapters into a single module:
- primary: HTTP server, controllers, scheduler executor (driving side)
- secondary: MongoDB client/database and persistence adapters (driven side)
- common: transports shared by both directions (messaging)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapterModules ¶
func NewAdapterModules(databaseType config.DatabaseType) fx.Option
NewAdapterModules creates the adapter layer module. The database type selects the secondary persistence backend (MongoDB or in-memory standalone).
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package common provides shared adapter infrastructure used by both primary (inbound) and secondary (outbound) adapters.
|
Package common provides shared adapter infrastructure used by both primary (inbound) and secondary (outbound) adapters. |
|
Package primary provides inbound (driving) adapters for the API server: the HTTP server with its controllers and the scheduler executor that runs background runners.
|
Package primary provides inbound (driving) adapters for the API server: the HTTP server with its controllers and the scheduler executor that runs background runners. |
|
Package secondary provides outbound (driven) adapters for the API server, such as the MongoDB client/database and the persistence repositories built on it.
|
Package secondary provides outbound (driven) adapters for the API server, such as the MongoDB client/database and the persistence repositories built on it. |
Click to show internal directories.
Click to hide internal directories.