Documentation
¶
Index ¶
- func AddNamedPrototype[T any](f *Factory, name string, fn Provider[T])
- func AddNamedSingleton[T any](f *Factory, name string, val T)
- func AddPrototype[T any](f *Factory, fn Provider[T])
- func AddSingleton[T any](f *Factory, val T)
- func Get[T any](f *Factory) result.Result[T]
- func GetNamed[T any](f *Factory, name string) result.Result[T]
- func MustGet[T any](f *Factory) T
- func MustGetNamed[T any](f *Factory, name string) T
- type Factory
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNamedPrototype ¶
AddNamedPrototype add named prototype provider to Factory
func AddNamedSingleton ¶
AddNamedSingleton add named singleton provider to Factory
func AddPrototype ¶
AddPrototype add prototype provider to Factory
func AddSingleton ¶
AddSingleton add singleton provider to Factory
func MustGetNamed ¶
MustGetNamed retrieve named typed service from Factory, or panic if error
Types ¶
Click to show internal directories.
Click to hide internal directories.