Pavel Pogodaev
e81f01c2ab
All checks were successful
/ DCO (pull_request) Successful in 2m19s
/ Builds (pull_request) Successful in 1m54s
/ Vulncheck (pull_request) Successful in 2m32s
/ Lint (pull_request) Successful in 2m46s
/ Tests (pull_request) Successful in 1m44s
/ Vulncheck (push) Successful in 1m21s
/ Builds (push) Successful in 1m33s
/ Lint (push) Successful in 3m23s
/ Tests (push) Successful in 2m5s
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
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()
|
|
}
|