1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-yggdrasil/cmd/httpserver/main.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)
}