dingo

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 1 Imported by: 54

README

See flamingo.me/dingo

Documentation

Index

Constants

View Source
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

func TryModule

func TryModule(modules ...Module) (resultingError error)

TryModule tests if modules are properly bound deprecated: use flamingo.me/dingo

Types

type Binding

type Binding = dingo.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 Depender

type Depender = dingo.Depender

Depender defines a dependency-aware module deprecated: use flamingo.me/dingo

type Injector

type Injector = dingo.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

func NewInjector(modules ...Module) *Injector

NewInjector builds up a new Injector out of a list of Modules deprecated: use flamingo.me/dingo

type Instance

type Instance = dingo.Instance

Instance holds quick-references to type and value deprecated: use flamingo.me/dingo

type Module

type Module = dingo.Module

Module is provided by packages to generate the DI tree deprecated: use flamingo.me/dingo

type Provider

type Provider = dingo.Provider

Provider holds the provider function deprecated: use flamingo.me/dingo

type Scope

type Scope = dingo.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

Jump to

Keyboard shortcuts

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