signal

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(shutdown func() error, logger *logger.Logger) (NotifySignal, StopSignal)

Notify receive signal and try to shut down

Types

type NotifySignal added in v0.5.1

type NotifySignal func(s os.Signal, timeout ...time.Duration) error

NotifySignal sends a signal with timeout

type StopSignal added in v0.6.2

type StopSignal func()

StopSignal stop receiving signals

Jump to

Keyboard shortcuts

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