forked from TrueCloudLab/frostfs-s3-gw
20 lines
253 B
Go
20 lines
253 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os/signal"
|
|
"syscall"
|
|
)
|
|
|
|
func main() {
|
|
g, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
|
|
|
v := newSettings()
|
|
l := pickLogger(v)
|
|
|
|
a := newApp(g, l, v)
|
|
|
|
go a.Serve(g)
|
|
|
|
a.Wait()
|
|
}
|