MCPcopy Create free account

hub / github.com/codegangsta/inject / functions

Functions27 in github.com/codegangsta/inject

↓ 26 callersFunctionexpect
* Test Helpers */
inject_test.go:28
↓ 9 callersMethodGet
Returns the Value that is mapped to the current type. Returns a zeroed Value if the Type has not been mapped.
inject.go:52
↓ 5 callersMethodMap
Maps the interface{} value based on its immediate type from reflect.TypeOf.
inject.go:41
↓ 5 callersMethodSet
Provides a possibility to directly insert a mapping based on type and value. This makes it possible to directly map type arguments not possible to ins
inject.go:49
↓ 4 callersMethodMapTo
Maps the interface{} value based on the pointer of an Interface provided. This is really only useful for mapping a value as an interface, as interface
inject.go:45
↓ 2 callersMethodGet
(t reflect.Type)
inject.go:158
↓ 2 callersMethodInvoke
Invoke attempts to call the interface{} provided as a function, providing dependencies for function arguments based on Type. Returns a slice of reflec
inject.go:35
↓ 1 callersMethodApply
Maps dependencies in the Type map to each field in the struct that is tagged with 'inject'. Returns an error if the injection fails.
inject.go:26
↓ 1 callersFunctionInterfaceOf
InterfaceOf dereferences a pointer to an Interface type. It panics if value is not an pointer to an interface.
inject.go:62
↓ 1 callersMethodSetParent
SetParent sets the parent of the injector. If the injector cannot find a dependency in its Type map it will check its parent before returning an error
inject.go:18
↓ 1 callersMethodString
()
inject_test.go:23
↓ 1 callersFunctionrefute
(t *testing.T, a interface{}, b interface{})
inject_test.go:34
MethodApply
Maps dependencies in the Type map to each field in the struct that is tagged with 'inject'. Returns an error if the injection fails.
inject.go:108
MethodInvoke
Invoke attempts to call the interface{} provided as a function, providing dependencies for function arguments based on Type. Returns a slice of reflec
inject.go:88
MethodMap
Maps the concrete value of val to its dynamic type using reflect.TypeOf, It returns the TypeMapper registered in.
inject.go:141
MethodMapTo
(val interface{}, ifacePtr interface{})
inject.go:146
FunctionNew
New returns a new Injector.
inject.go:77
MethodSet
Maps the given reflect.Type to the given reflect.Value and returns the Typemapper the mapping has been registered in.
inject.go:153
MethodSetParent
(parent Injector)
inject.go:185
FunctionTestInjectImplementors
(t *testing.T)
inject_test.go:153
FunctionTest_InjectorApply
(t *testing.T)
inject_test.go:86
FunctionTest_InjectorGet
(t *testing.T)
inject_test.go:134
FunctionTest_InjectorInvoke
(t *testing.T)
inject_test.go:40
FunctionTest_InjectorInvokeReturnValues
(t *testing.T)
inject_test.go:67
FunctionTest_InjectorSet
(t *testing.T)
inject_test.go:115
FunctionTest_InjectorSetParent
(t *testing.T)
inject_test.go:143
FunctionTest_InterfaceOf
(t *testing.T)
inject_test.go:100