signal

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(fn func(os.Signal))
signal.Wait(func(sig os.Signal) {
		log.Info("Gracefully shutting down...")
		log.Info("Waiting for all request to finish")
		err := app.Shutdown()
		if err != nil {
			log.Fatal(err)
		}
		log.Info("Running cleanup tasks...")
		log.Info("Server was successful shutdown.")
	})

Types

This section is empty.

Jump to

Keyboard shortcuts

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