Documentation ¶
Overview ¶
Package gracehttp provides easy to use graceful restart functionality for HTTP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
Serve will serve the given http.Servers and will monitor for signals allowing for graceful termination (SIGTERM) or restart (SIGUSR2).
func ServeWithWrapper ¶
func ServeWithWrapper(wrapper ListenerWrapper, servers ...*http.Server) error
ServeWithWrapper is the same as Serve but the wrapper is used on all the underlying listeners
Types ¶
Click to show internal directories.
Click to hide internal directories.