Skip to content

container

import "github.com/open-outbox/relay/internal/container"

Package container provides the Dependency Injection (DI) logic for the Outbox Relay. It leverages uber-go/dig to assemble the application’s components, including configuration, telemetry, storage drivers, and message publishers into a unified graph.

func BuildContainer(rootCtx context.Context) (*dig.Container, error)

BuildContainer initializes and returns a dig.Container with all application dependencies wired. It handles the construction of the logger, telemetry providers, database storage, and the message publisher based on the loaded configuration.