Help us shape the future of Go! Take the 2026 Go Developer Survey

ctxutil

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlert

func GetAlert(ctx context.Context) *model.Alert

func GetStack

func GetStack(ctx context.Context) int

func InjectAlert

func InjectAlert(ctx context.Context, alert *model.Alert) context.Context

func InjectClock

func InjectClock(ctx context.Context, clock model.Clock) context.Context

func InjectLogger

func InjectLogger(ctx context.Context, logger *slog.Logger) context.Context

func InjectStack

func InjectStack(ctx context.Context, stack int) context.Context

func IsCLI

func IsCLI(ctx context.Context) bool

func IsDryRun

func IsDryRun(ctx context.Context) bool

func Logger

func Logger(ctx context.Context) *slog.Logger

func Now

func Now(ctx context.Context) time.Time

func SetCLI

func SetCLI(ctx context.Context) context.Context

func SetDryRun

func SetDryRun(ctx context.Context, dryRun bool) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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