forked from TrueCloudLab/frostfs-http-gw
16 lines
277 B
Go
16 lines
277 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os/signal"
|
|
"syscall"
|
|
)
|
|
|
|
func main() {
|
|
globalContext, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
|
v := settings()
|
|
|
|
application := newApp(globalContext, v)
|
|
go application.Serve()
|
|
application.Wait()
|
|
}
|