adapter

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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