frostfs-http-gw/main.go

18 lines
372 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()
logger, atomicLevel := newLogger(v)
application := newApp(globalContext, WithLogger(logger, atomicLevel), WithConfig(v))
go application.Serve(globalContext)
application.Wait()
2020-11-09 13:43:23 +00:00
}