19 lines
465 B
Go
19 lines
465 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"gitlab.mareshq.com/hq/yggdrasil/internal/bootstrap"
|
|
"os/signal"
|
|
"syscall"
|
|
)
|
|
|
|
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen --config=../../oapi-codegen.yaml ../../api/v1/openapi.yaml
|
|
|
|
func main() {
|
|
shutdownCtx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
|
defer stop()
|
|
|
|
logger := bootstrap.Logger()
|
|
srv := bootstrap.Bootstrap(logger)
|
|
srv.Run(shutdownCtx)
|
|
}
|