Documentation ¶
Index ¶
- func InvokeIf(cond bool, function interface{}) fx.Option
- func ProvideAs(cnstr interface{}, cnstrs ...interface{}) fx.Option
- func ProvideIf(cond bool, ctor ...interface{}) fx.Option
- func ReplaceAs(val interface{}, cnstrs ...interface{}) fx.Option
- func SupplyIf(cond bool, val ...interface{}) 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.