shell

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL