Documentation ¶
Index ¶
- Variables
- func AddScopedIKSUID(builder *di.Builder, implType reflect.Type)
- func AddScopedIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIKSUID(builder *di.Builder, implType reflect.Type)
- func AddSingletonIKSUIDByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIKSUIDByObj(builder *di.Builder, obj interface{})
- func AddTransientIKSUID(builder *di.Builder, implType 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))
AddScopedIKSUIDByFunc adds a type by a custom func
func AddSingletonIKSUID ¶
AddSingletonIKSUID adds a type that implements IKSUID
func AddSingletonIKSUIDByFunc ¶
func AddSingletonIKSUIDByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error))
AddSingletonIKSUIDByFunc adds a type by a custom func
func AddSingletonIKSUIDByObj ¶
AddSingletonIKSUIDByObj adds a prebuilt obj
func AddTransientIKSUID ¶
AddTransientIKSUID adds a type that implements IKSUID
func AddTransientIKSUIDByFunc ¶
func AddTransientIKSUIDByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error))
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