Versions in this module Expand all Collapse all v0 v0.2.19 Mar 17, 2026 Changes in this version + type Builder interface + Build func() (T, error) + WithConfig func(config C) Builder[T, C] + WithOptions func(opts ...options.Option) Builder[T, C] + type ContextFunc func(ctx context.Context, config C, opts ...options.Option) (T, error) + func (f ContextFunc[T, C]) New(ctx context.Context, config C, opts ...options.Option) (T, error) + type CtxFuncRegistry struct + func NewCtxFuncRegistry[T any, C any]() *CtxFuncRegistry[T, C] + func (r *CtxFuncRegistry[T, C]) Create(ctx context.Context, name string, config C, opts ...options.Option) (T, error) + type ErrFactoryNotFound struct + Name string + func (e ErrFactoryNotFound) Error() string + func (e ErrFactoryNotFound) Is(target error) bool + type Func func(config C, opts ...options.Option) (T, error) + func (f Func[T, C]) New(config C, opts ...options.Option) (T, error) + type FuncRegistry struct + func NewFuncRegistry[T any, C any]() *FuncRegistry[T, C] + func (r *FuncRegistry[T, C]) Create(name string, config C, opts ...options.Option) (T, error) + type Registry interface + Get func(name string) (F, bool) + Register func(name string, factory F) + RegisteredFactories func() map[string]F + Reset func() + type RegistryBuilder struct + func NewRegistryBuilder[T any, C any]() *RegistryBuilder[T, C] + func (r *RegistryBuilder[T, C]) Create(name string, config C, opts ...options.Option) (T, error) + func (r *RegistryBuilder[T, C]) CreateBuilder(name string) (Builder[T, C], error)