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]CleanupOperation) <-chan struct{}
gracefulShutdown waits for termination syscalls and doing clean up operations after received it
Types ¶
type CleanupOperation ¶
operation is a clean up function on shutting down
Click to show internal directories.
Click to hide internal directories.