Versions in this module Expand all Collapse all v1 v1.1.0 Nov 7, 2026 Changes in this version type Hook + Reload func(ctx context.Context) error type Registry + func (r *Registry) AddReload(name string, fn func(context.Context) error) + func (r *Registry) Reload(ctx context.Context) error + type Reloader interface + OnReload func(ctx context.Context) error v1.0.0 Nov 7, 2026 Changes in this version + const DefaultDrainTimeout + var Signals = []os.Signal + func Run(ctx context.Context, r *Registry, serve func() error, ...) error + type Hook struct + Init func(ctx context.Context) error + Name string + Ready func(ctx context.Context) error + Shutdown func(ctx context.Context) error + type Initializer interface + OnInit func(ctx context.Context) error + type Ready interface + OnReady func(ctx context.Context) error + type Registry struct + func (r *Registry) Add(h Hook) + func (r *Registry) Init(ctx context.Context) error + func (r *Registry) Names() []string + func (r *Registry) Observe(name string, v any) + func (r *Registry) Ready(ctx context.Context) error + func (r *Registry) Shutdown(ctx context.Context) error + type Shutdowner interface + OnShutdown func(ctx context.Context) error