All checks were successful
/ DCO (pull_request) Successful in 35s
/ Vulncheck (pull_request) Successful in 45s
/ Builds (pull_request) Successful in 1m12s
/ OCI image (pull_request) Successful in 1m25s
/ Lint (pull_request) Successful in 2m3s
/ Tests (pull_request) Successful in 54s
/ Integration tests (pull_request) Successful in 5m49s
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
16 lines
281 B
Go
16 lines
281 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os/signal"
|
|
"syscall"
|
|
)
|
|
|
|
func main() {
|
|
globalContext, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
|
cfg := settings()
|
|
|
|
application := newApp(globalContext, cfg)
|
|
go application.Serve()
|
|
application.Wait()
|
|
}
|