Documentation ¶
Index ¶
- func AddByType(builder *di.Builder, scope string, ...)
- func AddScopedByType(builder *di.Builder, build func(ctn di.Container) (interface{}, error), ...)
- func AddSingletonByType(builder *di.Builder, build func(ctn di.Container) (interface{}, error), ...)
- func AddTransientByType(builder *di.Builder, build func(ctn di.Container) (interface{}, error), ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddByType ¶
func AddByType(builder *di.Builder, scope string, build func(ctn di.Container) (interface{}, error), close func(obj interface{}) error, rootType reflect.Type, implementedTypes ...reflect.Type)
AddByType adds service to the DI container
func AddScopedByType ¶
func AddScopedByType(builder *di.Builder, build func(ctn di.Container) (interface{}, error), close func(obj interface{}) error, rootType reflect.Type, implementedTypes ...reflect.Type)
AddSingletonByType adds service to the DI container
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.