mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-27 19:19:24 +00:00
Update vendor
This commit is contained in:
21
vendor/github.com/labstack/echo/cookbook/graceful-shutdown/graceful/server.go
generated
vendored
Normal file
21
vendor/github.com/labstack/echo/cookbook/graceful-shutdown/graceful/server.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/tylerb/graceful"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Setup
|
||||
e := echo.New()
|
||||
e.GET("/", func(c echo.Context) error {
|
||||
return c.String(http.StatusOK, "Sue sews rose on slow joe crows nose")
|
||||
})
|
||||
e.Server.Addr = ":1323"
|
||||
|
||||
// Serve it like a boss
|
||||
graceful.ListenAndServe(e.Server, 5*time.Second)
|
||||
}
|
Reference in New Issue
Block a user