1
0
Fork 0

build: move httpserver main.go to ./cmd/httpserver

This commit is contained in:
Vojtěch Mareš 2024-06-27 20:35:32 +02:00
parent 0c9cbc9d7a
commit ef8b2fac2f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 3 additions and 3 deletions

View file

@ -1,19 +0,0 @@
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)
}