shutdown

package
v0.0.1-20230504-0002 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WaitFinished, WaitCancel = context.WithCancel(context.Background())

var WaitFinished = make(chan bool) TODO: should be set here the default context instead of the background?!

Functions

func CallGracefulShutdown

func CallGracefulShutdown()

func MonitorSigMessages

func MonitorSigMessages()

MonitorSigMessages -> receives the signal of termination, and reacts based on this It should call the Cancel Context, and the entire app should terminate gracefully

func OnShutdown

func OnShutdown(onShutdown ...OnShutdownCb)

Types

type OnShutdownCb

type OnShutdownCb func()

Jump to

Keyboard shortcuts

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