build: move httpserver main.go to ./cmd/httpserver
This commit is contained in:
parent
0c9cbc9d7a
commit
ef8b2fac2f
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
Reference in a new issue