Versions in this module Expand all Collapse all v0 v0.2.19 Mar 17, 2026 Changes in this version + const DefaultName + const ReservedPrefix + var ErrRequirementNotFound = errors.New("engine: requirement not found") + type Category string + type ConfigEntry struct + Name string + RequirementResolver RequirementResolver + Value any + type ConfigResolver func(ctx context.Context, source any, opts *LoadOptions) (*ModuleConfig, error) + type Container interface + In func(cat Category, opts ...InOption) Registry + Inject func(cat Category, name string, inst any, opts ...RegisterOption) + IsRegistered func(cat Category, opts ...RegisterOption) bool + Load func(ctx context.Context, source any, opts ...LoadOption) error + Register func(cat Category, p Provider, opts ...RegisterOption) + Requirement func(cat Category, purpose string, res RequirementResolver) + type Handle interface + Category func() Category + Config func() any + Locator func() Locator + Name func() string + Require func(purpose string) (any, error) + Scope func() Scope + Tag func() string + type InOption func(Registry) Registry + type LoadOption func(*LoadOptions) + type LoadOptions struct + Category Category + Name string + Resolver ConfigResolver + Scope Scope + Tags []string + type Locator interface + Category func() Category + Get func(ctx context.Context, name string) (any, error) + In func(cat Category, opts ...InOption) Registry + Iter func(ctx context.Context) iterator.Iterator + Scope func() Scope + Scopes func() []Scope + Skip func(names ...string) Locator + Tags func() []string + WithInScope func(s Scope) Locator + WithInTags func(tags ...string) Locator + type ModuleConfig struct + Active string + Entries []ConfigEntry + RequirementResolver RequirementResolver + type Priority int + const PriorityCritical + const PriorityDefault + const PriorityFramework + const PriorityImportant + const PriorityInfrastructure + type Provider func(ctx context.Context, h Handle) (any, error) + type RegisterOption func(*RegistrationOptions) + type Registration struct + Category Category + Options []RegisterOption + Provider Provider + type RegistrationOptions struct + ConfigResolver ConfigResolver + DefaultEntries []string + Priority Priority + RequirementResolver RequirementResolver + Scopes []Scope + Tag string + type Registry interface + Inject func(name string, inst any, opts ...RegisterOption) + IsRegistered func(opts ...RegisterOption) bool + Register func(p Provider, opts ...RegisterOption) + Requirement func(purpose string, resolver RequirementResolver) + type RequirementResolver func(ctx context.Context, h Handle, purpose string) (any, error) + type Scope string