signals

package
v0.0.0-...-6c01d6e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallOnInterrupt

func CallOnInterrupt(callback func())

CallOnInterrupt will call a function whenever we receive a System Interrupt signal

func CallOnSignals

func CallOnSignals(callback func(), signals ...os.Signal)

CallOnSignals registers a function that will be called whenever one of the signals is triggered

Types

This section is empty.

Jump to

Keyboard shortcuts

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