mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-27 20:29:24 +00:00
Update vendor
This commit is contained in:
20
vendor/github.com/labstack/echo/cookbook/graceful-shutdown/grace/server.go
generated
vendored
Normal file
20
vendor/github.com/labstack/echo/cookbook/graceful-shutdown/grace/server.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/facebookgo/grace/gracehttp"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Setup
|
||||
e := echo.New()
|
||||
e.GET("/", func(c echo.Context) error {
|
||||
return c.String(http.StatusOK, "Six sick bricks tick")
|
||||
})
|
||||
e.Server.Addr = ":1323"
|
||||
|
||||
// Serve it like a boss
|
||||
e.Logger.Fatal(gracehttp.Serve(e.Server))
|
||||
}
|
Reference in New Issue
Block a user