package
Version:
v1.0.6
Opens a new window with list of versions in this module.
Published: Jan 16, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
GracefulShutdown accepts a server reference and triggers a graceful shutdown
for it when either SIGINT or SIGTERM is received.
Handler receives an HTTP request and response and a handler function
It manages timeouts and prometheus metrics
NewServer returns an HTTP server ready to listen on the configured port
and with logReq mixed in for logging.
Handle type receive the context elements of a HTTP request to process it
Source Files
¶
Click to show internal directories.
Click to hide internal directories.