Documentation ¶
Index ¶
- Variables
- func AddScopedIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIKSUIDByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddTransientIKSUID(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- 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 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 AddSingletonIKSUIDByObj ¶
func AddSingletonIKSUIDByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
AddSingletonIKSUIDByObj adds a prebuilt obj
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 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