Documentation
¶
Overview ¶
Package stdfx provides utilities for using Uber's fx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamedNoProvideZapEnvCfgModule ¶ added in v0.0.128
func NamedNoProvideZapEnvCfgModule[CFG any](moduleName, instanceName string, opts ...fx.Option) fx.Option
NamedNoProvideZapEnvCfgModule is like ZapEnvCfgModule but does not provide anything by default.
func NoProvideZapEnvCfgModule ¶ added in v0.0.128
NoProvideZapEnvCfgModule is like ZapEnvCfgModule but does not provide anything by default.
func ZapEnvCfgModule ¶
func ZapEnvCfgModule[CFG any, P, R any](name string, newf func(P) (R, error), opts ...fx.Option) fx.Option
ZapEnvCfgModule creates a fx module that already provides a configuration struct parsed from the prefixed environment vars and a logger named after the module. P is assumed to be a fx "Params" struct embedding a fx.In, see: https://uber-go.github.io/fx/parameter-objects.html and R an results object as described here: https://uber-go.github.io/fx/result-objects.html.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.