Documentation ¶ Index ¶ func Execute(globalCtx context.Context, current ExecutionStage) error func Shutdown(ctx context.Context, cancel context.CancelFunc, ...) error type ExecutionStage type Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Execute ¶ func Execute(globalCtx context.Context, current ExecutionStage) error func Shutdown ¶ func Shutdown(ctx context.Context, cancel context.CancelFunc, shutdown func(cancelFunc context.CancelFunc)) error Types ¶ type ExecutionStage ¶ type ExecutionStage interface { Name() string Configure(ctx context.Context, cancel context.CancelFunc) (context.Context, error) Run(ctx context.Context) (ExecutionStage, error) Shutdown(ctx context.Context, timeout context.CancelFunc) error ShutdownTimeout() time.Duration } type Logger ¶ added in v0.2.0 type Logger interface { slog.Handler SetLevel(string) error } Source Files ¶ View all Source files app.goshutdown.go Click to show internal directories. Click to hide internal directories.