Versions in this module Expand all Collapse all v1 v1.1.0 Nov 6, 2026 v1.0.0 Nov 6, 2026 Changes in this version + func Cleanup(resource any) (func(context.Context) error, error) + func NotifyContext(ctx context.Context, signals ...os.Signal) (context.Context, context.CancelFunc) + type Hook struct + Name string + Start func(context.Context) error + Stop func(context.Context) error + type Manager struct + Timeout time.Duration + func (m *Manager) Register(h Hook) error + func (m *Manager) RegisterResource(name string, factory func(context.Context) (any, error)) error + func (m *Manager) Start(ctx context.Context) error + func (m *Manager) Stop(ctx context.Context) error