/go-graceful-server-shutdown

Go package which gracefully stops servers

Primary LanguageGoApache License 2.0Apache-2.0

go-graceful-server-shutdown

Go package which gracefully stops servers

GoDoc code-coverage Go Report Card Go Create Release

Quick Start

// Create server based on the provided handler.
// The server will listen on port 8080 and there will be
// no timeout for the connection draining.
// StartServer will block the program execution until the server is closed.
err := gss.StartServer(http.DefaultServeMux)