Versions in this module Expand all Collapse all v0 v0.1.1 Feb 22, 2026 Changes in this version + type Closer interface + Close func(ctx context.Context) error + type CloserFunc func(ctx context.Context) error + func (f CloserFunc) Close(ctx context.Context) error + type ComponentOption func(*componentConfig) + func WithComponentTimeout(d time.Duration) ComponentOption + func WithPriority(p int) ComponentOption + type Manager struct + func New(opts ...Option) *Manager + func (m *Manager) Listen(ctx context.Context) error + func (m *Manager) Register(name string, closer Closer, opts ...ComponentOption) *Manager + func (m *Manager) RegisterFunc(name string, fn func(ctx context.Context) error, opts ...ComponentOption) *Manager + func (m *Manager) Shutdown(ctx context.Context) error + type Option func(*managerConfig) + func WithLogger(logger *slog.Logger) Option + func WithOnError(fn func(name string, err error)) Option + func WithSignals(signals ...os.Signal) Option + func WithTimeout(d time.Duration) Option