Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulShutdown ¶
func GracefulShutdown(server *http.Server, waitTime time.Duration, logger ShutdownLogger) chan struct{}
GracefulShutdown will enable graceful shutdown on the passed server.
Types ¶
type ShutdownLogger ¶
type ShutdownLogger interface { Infof(format string, args ...interface{}) Errorf(format string, args ...interface{}) }
ShutdownLogger implements logging for shutdown process.
Click to show internal directories.
Click to hide internal directories.