Registry / networking / ory-graceful

ory-graceful

JSON →
library0.2.0gogounverified

Provides best-practice HTTP server configurations and helpers for graceful shutdown in Go 1.8+.

go get github.com/ory/graceful
INSTALL
IMPORT
SIG · ORY-GRACEFUL
O
ory-graceful
networkinggov0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

graceful
github.com/ory/graceful

Run an HTTP server with graceful shutdown

package main import ( "net/http" "github.com/ory/graceful" ) func main() { srv := &http.Server{Addr: ":8080"} graceful.Graceful(srv.ListenAndServe, srv.Shutdown) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ory-graceful — go get ory-graceful · libregistry