Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddShutdownHandler ¶
func AddShutdownHandler(handler func() error)
AddShutdownHandler registers a handler to be run before shutdown.
func WaitForShutdown ¶
func WaitForShutdown()
WaitForShutdown blocks on a channel that will never be closed. Its purpose is to be called by main to prevent server exit while shutdown handler goroutines are executing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.