signals

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 16

Documentation

Overview

Package signals contains utilities for managing process signals, particularly around stopping processes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSigKillContext added in v1.13.0

func NewSigKillContext() (context.Context, context.CancelFunc)

NewSigKillContext returns a Context that cancels when os.Interrupt or os.Kill is received along with a stop function that can be used to unregister the signal behavior.

func NewSigTermHandler added in v1.31.0

func NewSigTermHandler(handle func())

NewSigTermHandler creates a channel to listen to SIGTERM and runs the handle function

Types

This section is empty.

Jump to

Keyboard shortcuts

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