sigx

package
v0.0.0-...-97189e1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitReload

func AwaitReload(lg *zap.SugaredLogger, sigChan chan os.Signal, closerWait chan bool, closer func()) chan bool

AwaitReload waits for

func Listen

func Listen(fn func(os.Signal))

func ListenExit

func ListenExit(fn func(os.Signal))

ListenExit will listen to OS signals (currently SIGINT, SIGKILL, SIGTERM) and will trigger the callback when signal are received from OS

Types

This section is empty.

Jump to

Keyboard shortcuts

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