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 ¶
Types ¶
type App ¶
An App contains one or more servers and associated configuration.
func (*App) DeletePidfile ¶
func (*App) Listen ¶
Listen will inherit or create new listeners. Returns a bool indicating if we inherited listeners. This return value is useful in order to decide if we should instruct the parent process to terminate.
func (*App) Serve ¶
func (a *App) Serve()
Serve the configured servers, but do not block. You must call Wait at some point to ensure correctly waiting for graceful termination.
func (*App) WriteParentPidfile ¶
func (*App) WritePidfile ¶
Directories ¶
Path | Synopsis |
---|---|
Command testserver implements a test case.
|
Command testserver implements a test case. |
Click to show internal directories.
Click to hide internal directories.