Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForShutdown ¶
func WaitForShutdown(s *http.Server, cf context.CancelFunc)
After a SIGINT, SIGTERM, or os.Interrupt, shut down s, wait a bit for requests to clear, then call the passed cancel function. This will let the requests finish before shutting down any other open resources with the passed CancelFunc. This function will block until server shutdown is complete
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.