Versions in this module Expand all Collapse all v0 v0.8.0 Dec 1, 2025 Changes in this version + type Host struct + func New(opts ...Option) *Host + func NewHost(opts ...Option) *Host + func (h *Host) InjectAuto(target any) error + func (h *Host) Invoke(fn any) error + func (h *Host) Lifecycle() Lifecycle + func (h *Host) Provide(target any, opts ...di.Option) error + func (h *Host) Run() error + type Kernel interface + Boot func() error + GetContainer func() di.Container + GetLifecycle func() Lifecycle + Shutdown func() error + State func() State + func NewKernel() Kernel + type Lifecycle interface + OnStart func(fn func(context.Context) error) + OnStop func(fn func(context.Context) error) + Start func(ctx context.Context, container di.Container) error + Stop func(ctx context.Context) error + func NewLifecycle() Lifecycle + type Module struct + func NewModule(name string) *Module + func (m *Module) Options(opts ...Option) *Module + func (m *Module) Provide(provider any) *Module + func (m *Module) Runner(provider any) *Module + type Option func(*Host) + func Import(m *Module) Option + func Load(m *Module) Option + func Provide(target any, opts ...di.Option) Option + func ProvideConfig[T any](key string, defaultVal *T) Option + func ProvideMonitor[T any](key string, defaultVal *T) Option + func ProvideValue[T any](val T, opts ...di.Option) Option + func Runner(target any, opts ...di.Option) Option + func WithConfig(file string) Option + type Runnable interface + Name func() string + Start func(ctx context.Context) error + Stop func(ctx context.Context) error + type State int + const StateBooted + const StateInitialized + const StateRunning + const StateStopped