Versions in this module Expand all Collapse all v0 v0.1.0 Mar 13, 2025 Changes in this version + type Binding struct + type BindingCache struct + func NewBindingCache() *BindingCache + type BindingContext struct + func WithState[T any](binder *Injector, state interface{}, opt ...BindingOption[T]) *BindingContext[T] + func (c *BindingContext[T]) Inject(ctx context.Context, target *T) error + func (c *BindingContext[T]) Value(ctx context.Context, location *state.Location) (interface{}, bool, error) + type BindingOption func(ctx *BindingContext[T]) + func WithCache[T any](cache *ValueCache) BindingOption[T] + type BindingType struct + Bindings []Bindings + Type *structology.StateType + type Bindings []*Binding + func (b Bindings) GroupByPriority(registry *locator.Registry) ([]Bindings, error) + type Injector struct + func NewInjector(options ...InjectorOption) *Injector + func (b *Injector) TransformerRegistry() *xform.Registry + type InjectorOption func(*Injector) + func WithBindingTag(tag string) InjectorOption + func WithLocators(registry *locator.Registry) InjectorOption + func WithProviders(providers ...locator.Provider) InjectorOption + func WithTransformerTag(tag string) InjectorOption + type StructTypeCache struct + func NewStructTypeCache() *StructTypeCache + type ValueCache struct + func NewValueCache() *ValueCache + func (c *ValueCache) Clear() + func (c *ValueCache) Load(ctx context.Context, URL string) error + func (c *ValueCache) Save(ctx context.Context, destURL string) error