Add authentication and metrics

This commit is contained in:
Kevin Kandlbinder 2023-03-07 15:14:08 +01:00
parent 7667ea7b90
commit 6abea91d7c
Signed by: kevin
GPG key ID: 1460B586646E180D
16 changed files with 894 additions and 31 deletions

View file

@ -2,9 +2,9 @@ package cmd
import (
"github.com/Unkn0wnCat/calapi/internal/database"
"github.com/Unkn0wnCat/calapi/internal/logger"
"github.com/Unkn0wnCat/calapi/internal/server"
"github.com/spf13/cobra"
"log"
"os"
"os/signal"
"syscall"
@ -28,7 +28,7 @@ var serveCmd = &cobra.Command{
go server.Serve()
<-c // Wait for quit signal
log.Println("goodbye, shutting down...")
logger.Logger.Info("goodbye, shutting down...")
return nil
},