frostfs-http-gw/cmd/http-gw/main.go

17 lines
277 B
Go
Raw Permalink Normal View History

2019-11-06 12:33:46 +00:00
package main
2020-11-09 13:43:23 +00:00
import (
"context"
"os/signal"
"syscall"
2020-11-09 13:43:23 +00:00
)
func main() {
globalContext, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
v := settings()
application := newApp(globalContext, v)
go application.Serve()
application.Wait()
2020-11-09 13:43:23 +00:00
}