优雅地重新加载golang http服务器,零停机时间,与systemd,supervisor兼容-Golang开发

时间:2021-05-26 17:10:21
【文件属性】:
文件名称:优雅地重新加载golang http服务器,零停机时间,与systemd,supervisor兼容-Golang开发
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-26 17:10:21
Golang Server Applications 优美受到监督者和无止境的启发,以最少的代码和方便的api来使http服务器优美。 必备条件golang 1.8+ linux / darwin(不支持Windows)功能优美的重装HTTP优美的风格受监督者和无止境的启发,以最少的代码和方便的api使HTTP服务器优美。 必备组件golang 1.8+ linux / darwin(不支持Windows)功能优雅地重新加载http服务器,升级时停机时间为零。 与systemd,supervisor等兼容。http.ListenAndServe的嵌入式放置示例类型处理程序struct {} func(h * handler)ServeHTTP(w http.ResponseWriter,r * http.Request){fmt.Fprintf(w,“ Hello ,端口:%v,%q“,r.Host,ht
【文件预览】:
graceful-master
----master.go(4KB)
----go.mod(42B)
----graceful.go(4KB)
----example()
--------example.go(1KB)
----LICENSE(1KB)
----README.md(2KB)
----graceful_test.go(149B)
----worker.go(3KB)
----.gitignore(6B)
----graceful_windows.go(893B)

网友评论