Documentation
¶
Overview ¶
Package module provides top-level Fx module composition for go-service.
The exported modules in this package are intended to be embedded into an application's Fx graph to enable groups of common features (library-only, server-side, or client-side wiring).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Library provides a baseline Fx module intended for reuse by both servers and clients. // // It wires common, non-transport-specific dependencies (environment, encoding, // crypto primitives, time, sync, and ID helpers). Library = di.Module( env.Module, compress.Module, encoding.Module, crypto.Module, time.Module, sync.Module, id.Module, ) // Server provides the standard Fx module composition for a go-service server. // // It builds on Library and adds server-oriented wiring such as config decoding, // debugging endpoints, caches, SQL databases, telemetry, rate limiting, // transports, and health checks. Server = di.Module( Library, debug.Module, cache.Module, config.Module, feature.Module, sql.Module, telemetry.Module, limiter.Module, transport.Module, health.Module, ) // Client provides the standard Fx module composition for a go-service client. // // It builds on Library and adds client-oriented wiring such as config decoding, // feature flags, HTTP client hooks, SQL databases, telemetry, and rate limiting. Client = di.Module( Library, cache.Module, config.Module, feature.Module, hooks.Module, sql.Module, telemetry.Module, limiter.Module, ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.