feat: add working watchdog cycle

This commit is contained in:
DaanSelen
2026-04-22 11:51:57 +02:00
parent bf04e97850
commit 0c287cc917
10 changed files with 166 additions and 82 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package api
import (
"eden-server/internal/runtime"
"eden-server/internal/utility"
"fmt"
"log/slog"
@@ -22,7 +22,7 @@ type RespObj struct {
// All error messages from slog must have an error field with the golang error
// See bottom the the kickoff function for details
func KickoffApi(logger *slog.Logger, env runtime.Environment, db *gorm.DB) {
func KickoffApi(logger *slog.Logger, env utility.Environment, db *gorm.DB) {
gin.SetMode(gin.ReleaseMode)
// For a nice looking logger: