Documentation ¶
Index ¶
Constants ¶
const ( // INIT state INIT = dingo.INIT // DEFAULT state DEFAULT = dingo.INIT )
Variables ¶
This section is empty.
Functions ¶
func EnableCircularTracing ¶
func EnableCircularTracing()
EnableCircularTracing activates dingo's trace feature to find circular dependencies this is super expensive (memory wise), so it should only be used for debugging purposes deprecated: use flamingo.me/dingo
Types ¶
type Binding ¶
Binding defines a type mapped to a more concrete type deprecated: use flamingo.me/dingo
type ChildSingletonScope ¶
type ChildSingletonScope = dingo.ChildSingletonScope
ChildSingletonScope manages child-specific singleton deprecated: use flamingo.me/dingo
func NewChildSingletonScope ¶
func NewChildSingletonScope() *ChildSingletonScope
NewChildSingletonScope creates a new child singleton scope deprecated: use flamingo.me/dingo
type Injector ¶
Injector defines bindings and multibindings it is possible to have a parent-injector, which can be asked if no resolution is available deprecated: use flamingo.me/dingo
func NewInjector ¶
NewInjector builds up a new Injector out of a list of Modules deprecated: use flamingo.me/dingo
type Module ¶
Module is provided by packages to generate the DI tree deprecated: use flamingo.me/dingo
type Scope ¶
Scope defines a scope's behaviour deprecated: use flamingo.me/dingo
var ( // Singleton is the default SingletonScope for dingo // deprecated: use flamingo.me/dingo Singleton Scope = NewSingletonScope() // ChildSingleton is a per-child singleton // deprecated: use flamingo.me/dingo ChildSingleton Scope = NewChildSingletonScope() )
type SingletonScope ¶
type SingletonScope = dingo.SingletonScope
SingletonScope is our Scope to handle Singletons deprecated: use flamingo.me/dingo
func NewSingletonScope ¶
func NewSingletonScope() *SingletonScope
NewSingletonScope creates a new singleton scope deprecated: use flamingo.me/dingo