Versions in this module Expand all Collapse all v0 v0.0.11 Mar 4, 2024 v0.0.10 Jan 24, 2024 v0.0.9 Jan 24, 2024 Changes in this version + var DefaultKey = struct{} + func GetKeyedRoutine[T any](provider IRoutineProvider, key any) T + func GetRoutine[T any](provider IRoutineProvider) T + type IRoutineCollection interface + AddDescriptor func(descriptor *RoutineDescriptor) + GetDescriptor func(ty reflect.Type) *RoutineDescriptor + GetDescriptors func() []*RoutineDescriptor + GetKeyedDescriptor func(key any, ty reflect.Type) *RoutineDescriptor + type IRoutineProvider interface + CreateScope func() IRoutineScope + GetKeyedRoutine func(key any, ty reflect.Type) any + GetRootScope func() IRoutineScope + GetRoutine func(ty reflect.Type) any + type IRoutineScope interface + GetKeyedScopedRoutine func(key any, ty reflect.Type) any + GetProvider func() IRoutineProvider + GetRoot func() IRoutineScope + GetScopedRoutine func(ty reflect.Type) any + SetKeyedScopedRoutine func(key any, ty reflect.Type, value any) + SetScopedRoutine func(ty reflect.Type, value any) + type RoutineDescriptor struct + Factory func(scope IRoutineScope) any + InitLock int32 + Key any + Lifetime RoutineLifetime + TyImpl reflect.Type + TyKey reflect.Type + type RoutineLifetime uint8 + const Scoped + const Singleton + const Transient