Versions in this module Expand all Collapse all v1 v1.12.0 Jun 8, 2023 Changes in this version + var ErrTypeNotExists = errors.New("not exists in the container") + func SetTracer(t Tracer) + type Constructor interface + type Container struct + func New(options ...Option) (_ *Container, err error) + func (c *Container) AddParent(parent *Container) error + func (c *Container) Apply(options ...Option) error + func (c *Container) Cleanup() + func (c *Container) Has(target Pointer, options ...ResolveOption) (bool, error) + func (c *Container) Invoke(invocation Invocation, options ...InvokeOption) error + func (c *Container) Iterate(target Pointer, fn IterateFunc, options ...ResolveOption) error + func (c *Container) Provide(constructor Constructor, options ...ProvideOption) error + func (c *Container) ProvideValue(value Value, options ...ProvideOption) error + func (c *Container) Resolve(ptr Pointer, options ...ResolveOption) error + type Decorator func(value Value) error + type Inject struct + type Interface interface + type Invocation interface + type InvokeOption interface + type InvokeParams struct + Fn interface{} + type IterateFunc func(tags Tags, value ValueFunc) error + type Option interface + func Invoke(fn Invocation, options ...InvokeOption) Option + func Options(options ...Option) Option + func Provide(constructor Constructor, options ...ProvideOption) Option + func ProvideValue(value Value, options ...ProvideOption) Option + func Resolve(target Pointer, options ...ResolveOption) Option + type Pointer interface + type ProvideOption interface + func As(interfaces ...Interface) ProvideOption + func Decorate(decorators ...Decorator) ProvideOption + func WithName(name string) ProvideOption + type ProvideParams struct + Decorators []Decorator + Interfaces []Interface + Tags Tags + type ResolveOption interface + func Name(name string) ResolveOption + type ResolveParams struct + Tags Tags + type StdTracer struct + func (s StdTracer) Trace(format string, args ...interface{}) + type Tags map[string]string + func (t Tags) String() string + type Tracer interface + Trace func(format string, args ...interface{}) + type Value interface + type ValueFunc func() (interface{}, error)