# Packages

No description provided by the author

# Functions

New initializes GracefulShutdown.

# Structs

GracefulShutdown is main struct that handles ShutdownCallbacks and ShutdownManagers.

# Interfaces

ErrorHandler is an interface you can pass to SetErrorHandler to handle asynchronous errors.
GSInterface is an interface implemented by GracefulShutdown, that gets passed to ShutdownManager to call StartShutdown when shutdown is requested.
ShutdownCallback is an interface you have to implement for callbacks.
ShutdownManager is an interface implemnted by ShutdownManagers.

# Type aliases

ErrorFunc is a helper type, so you can easily provide anonymous functions as ErrorHandlers.
ShutdownFunc is a helper type, so you can easily provide anonymous functions as ShutdownCallbacks.