Registry / web-framework / fvbock-endless

fvbock-endless

JSON →
library0.0.0-20170109170031-447134032cb6gogounverified

Provides a drop-in replacement for net/http ListenAndServe and ListenAndServeTLS to achieve zero downtime restarts and code upgrades.

go get github.com/fvbock/endless
INSTALL
IMPORT
SIG · FVBOCK-ENDLESS
F
fvbock-endless
web-frameworkgov0.0.0-20170109170031-447134032cb6
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.

endless
github.com/fvbock/endless

Starts an HTTP server with zero-downtime restarts using endless.

package main import ( "net/http" "github.com/fvbock/endless" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello")) }) endless.ListenAndServe(":8080", mux) }
Debug
Known issues
gotchaEndless may not work correctly with all HTTP frameworks due to signal handling conflicts.
fix
Ensure your application handles signals appropriately or test with your specific framework.
affects: all
Upgrade
Version history
0.0.0-20170109170031-447134032cb6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fvbock-endless — go get fvbock-endless · libregistry