sigx

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT 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