cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFuncWithSignalHandling

func RunFuncWithSignalHandling(f func(context.Context, *config.Config) error, runFlags RunFlags) int

RunFuncWithSignalHandling runs the given function with signal handling. When a CTRL-C is received, the context will be cancelled on which the function can act upon. It returns the exitCode

Types

type RunFlags

type RunFlags struct {
	GracefulShutdownSec     int64
	GracefulShutdownMessage string
	Env                     string
}

Jump to

Keyboard shortcuts

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