utils

package
v1.4.15-slog1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForProcessInterruption

func WaitForProcessInterruption(cb ...func())

WaitForProcessInterruption wait for SIGINT or SIGTERM and run a callback function.

First signal start a callback function, which should call os.Exit(0). Next signal will call os.Exit(128 + signal-value). If no cb is given,

Types

This section is empty.

Jump to

Keyboard shortcuts

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