graceshd

package
v0.0.0-...-d7e01b7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulShutdown

func GracefulShutdown(ctx context.Context, timeout time.Duration, ops map[string]Operation) <-chan struct{}

GracefulShutdown waits for termination syscalls and doing clean up operations after received it

Types

type Operation

type Operation func(ctx context.Context) error

Operation is a cleanup function on shutting down

Jump to

Keyboard shortcuts

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