Versions in this module Expand all Collapse all v0 v0.1.3 Jan 24, 2026 Changes in this version + var DefaultContainer = New() + func HealthCheckNamed(i *Container, name string) error + func HealthCheck[T any](i *Container) error + func InvokeNamed[T any](i *Container, name string) (T, error) + func Invoke[T any](i *Container) (T, error) + func MustInvokeNamed[T any](i *Container, name string) T + func MustInvoke[T any](i *Container) T + func MustShutdownNamed(i *Container, name string) + func MustShutdown[T any](i *Container) + func OverrideNamedValue[T any](i *Container, name string, value T) + func OverrideNamed[T any](i *Container, name string, provider Provider[T]) + func OverrideValue[T any](i *Container, value T) + func Override[T any](i *Container, provider Provider[T]) + func ProvideNamedValue[T any](i *Container, name string, value T) + func ProvideNamed[T any](i *Container, name string, provider Provider[T]) + func ProvideValue[T any](i *Container, value T) + func Provide[T any](i *Container, provider Provider[T]) + func ShutdownNamed(i *Container, name string) error + func Shutdown[T any](i *Container) error + type Container struct + func New() *Container + func NewWithOpts(opts *ContainerOpts) *Container + func (container *Container) Inject(servicePtr interface{}) error + func (i *Container) Clone() *Container + func (i *Container) CloneWithOpts(opts *ContainerOpts) *Container + func (i *Container) HealthCheck() map[string]error + func (i *Container) ListInvokedServices() []string + func (i *Container) ListProvidedServices() []string + func (i *Container) Shutdown() error + func (i *Container) ShutdownOnSIGTERM() error + func (i *Container) ShutdownOnSignals(signals ...os.Signal) error + type ContainerOpts struct + HookAfterRegistration func(injector *Container, serviceName string) + HookAfterShutdown func(injector *Container, serviceName string) + Logf func(format string, args ...any) + type Healthcheckable interface + HealthCheck func() error + type Provider func(*Container) (T, error) + type Service interface + type Shutdownable interface + Shutdown func() error