Documentation
¶
Index ¶
- func InvokeIf(cond bool, function any) fx.Option
- func ProvideAs(cnstr any, cnstrs ...any) fx.Option
- func ProvideIf(cond bool, ctor ...any) fx.Option
- func ReplaceAs(val any, cnstrs ...any) fx.Option
- func SupplyIf(cond bool, val ...any) fx.Option
- func WithLifecycle(ctx context.Context, lc fx.Lifecycle) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideAs ¶
ProvideAs creates an FX option that provides constructor 'cnstr' with the returned values types as 'cnstrs' It is as simple utility that hides away FX annotation details.
func ReplaceAs ¶
ReplaceAs creates an FX option that substitutes types defined by constructors 'cnstrs' with the value 'val'. It is as simple utility that hides away FX annotation details.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.