Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

+++ 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" >}})