package
0.0.0-20201215173027-a12daaf43806
Repository: https://github.com/vividcortex/goji.git
Documentation: pkg.go.dev
# Functions
AddSignal adds the given signal to the set of signals that trigger a graceful shutdown.
HandleSignals installs signal handlers for a set of standard signals.
ListenAndServe behaves exactly like the net/http function of the same name.
ListenAndServeTLS behaves exactly like the net/http function of the same name.
Middleware adds graceful shutdown capabilities to the given handler.
PostHook registers a function to be called after all of this package's normal shutdown actions.
PreHook registers a function to be called before any of this package's normal shutdown actions.
ResetSignals resets the list of signals that trigger a graceful shutdown.
Serve behaves exactly like the net/http function of the same name.
Shutdown manually triggers a shutdown from your application.
Wait for all connections to gracefully shut down.
WrapConn wraps an arbitrary connection for use with graceful shutdowns.
WrapListener wraps an arbitrary net.Listener for use with graceful shutdowns.
# Type aliases
Type Server is exactly the same as an http.Server, but provides more graceful implementations of its methods.