di

package
v0.1.278 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func AddSingletonByType

func AddSingletonByType(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

func AddTransientByType

func AddTransientByType(builder *di.Builder,
	build func(ctn di.Container) (interface{}, error),
	close func(obj interface{}) error,
	rootType reflect.Type,
	implementedTypes ...reflect.Type)

AddTransientByType adds service to the DI container

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL