mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-06-18 07:41:37 +02:00
Add authentication and metrics
This commit is contained in:
parent
7667ea7b90
commit
6abea91d7c
16 changed files with 894 additions and 31 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue