Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (22 sloc) 762 Bytes

+++ title = "Graceful Shutdown Recipe" description = "Graceful shutdown recipe for Echo" [menu.main] name = "Graceful Shutdown" parent = "cookbook" +++

Using http.Server#Shutdown()

server.go

{{< embed "graceful-shutdown/server.go" >}}

Requires go1.8+

Using grace

server.go

{{< embed "graceful-shutdown/grace/server.go" >}}

Using graceful

server.go

{{< embed "graceful-shutdown/graceful/server.go" >}}

[Source Code]({{< source "graceful-shutdown" >}})

Maintainers