Documentation ¶
Index ¶
- Variables
- func AddScopedIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIKSUIDByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIKSUIDWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddSingletonIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIKSUIDByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIKSUIDByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddSingletonIKSUIDByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, ...)
- func AddSingletonIKSUIDWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddTransientIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIKSUIDByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIKSUIDWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func GetIKSUIDDefinition(ctn di.Container) *di.Def
- func GetIKSUIDDefinitions(ctn di.Container) []*di.Def
- func RemoveAllIKSUID(builder *di.Builder)
- type IKSUID
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeIKSUID = di.GetInterfaceReflectType((*IKSUID)(nil))
ReflectTypeIKSUID used when your service claims to implement IKSUID
Functions ¶
func AddScopedIKSUID ¶
AddScopedIKSUID adds a type that implements IKSUID
func AddScopedIKSUIDByFunc ¶
func AddScopedIKSUIDByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddScopedIKSUIDByFunc adds a type by a custom func
func AddScopedIKSUIDByFuncWithMetadata ¶ added in v0.1.217
func AddScopedIKSUIDByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddScopedIKSUIDByFuncWithMetadata adds a type by a custom func
func AddScopedIKSUIDWithMetadata ¶ added in v0.1.217
func AddScopedIKSUIDWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddScopedIKSUIDWithMetadata adds a type that implements IKSUID
func AddSingletonIKSUID ¶
func AddSingletonIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddSingletonIKSUID adds a type that implements IKSUID
func AddSingletonIKSUIDByFunc ¶
func AddSingletonIKSUIDByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddSingletonIKSUIDByFunc adds a type by a custom func
func AddSingletonIKSUIDByFuncWithMetadata ¶ added in v0.1.217
func AddSingletonIKSUIDByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIKSUIDByFuncWithMetadata adds a type by a custom func
func AddSingletonIKSUIDByObj ¶
func AddSingletonIKSUIDByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
AddSingletonIKSUIDByObj adds a prebuilt obj
func AddSingletonIKSUIDByObjWithMetadata ¶ added in v0.1.217
func AddSingletonIKSUIDByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIKSUIDByObjWithMetadata adds a prebuilt obj
func AddSingletonIKSUIDWithMetadata ¶ added in v0.1.217
func AddSingletonIKSUIDWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIKSUIDWithMetadata adds a type that implements IKSUID
func AddTransientIKSUID ¶
func AddTransientIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddTransientIKSUID adds a type that implements IKSUID
func AddTransientIKSUIDByFunc ¶
func AddTransientIKSUIDByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddTransientIKSUIDByFunc adds a type by a custom func
func AddTransientIKSUIDByFuncWithMetadata ¶ added in v0.1.217
func AddTransientIKSUIDByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddTransientIKSUIDByFuncWithMetadata adds a type by a custom func
func AddTransientIKSUIDWithMetadata ¶ added in v0.1.217
func AddTransientIKSUIDWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddTransientIKSUIDWithMetadata adds a type that implements IKSUID
func GetIKSUIDDefinition ¶ added in v0.1.217
GetIKSUIDDefinition returns that last definition registered that this container can provide
func GetIKSUIDDefinitions ¶ added in v0.1.217
GetIKSUIDDefinitions returns all definitions that this container can provide
func RemoveAllIKSUID ¶
RemoveAllIKSUID removes all IKSUID from the DI
Types ¶
type IKSUID ¶
type IKSUID interface {
UUID() string
}
IKSUID ...
func GetIKSUIDFromContainer ¶
GetIKSUIDFromContainer alternative to SafeGetIKSUIDFromContainer but panics of object is not present
func GetManyIKSUIDFromContainer ¶ added in v0.1.181
GetManyIKSUIDFromContainer alternative to SafeGetManyIKSUIDFromContainer but panics of object is not present
func SafeGetIKSUIDFromContainer ¶
SafeGetIKSUIDFromContainer trys to get the object by type, will not panic, returns nil and error