add settings yaml
Some checks are pending
continuous-integration/drone/push Build is passing
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions

This commit is contained in:
2024-09-26 17:24:36 +10:00
parent 44c4bb2d66
commit dcbbff830d
7 changed files with 128 additions and 19 deletions

View File

@@ -7,6 +7,7 @@ import (
"time"
"vctp/db"
"vctp/db/queries"
"vctp/internal/settings"
"vctp/internal/vcenter"
"github.com/vmware/govmomi/vim25/types"
@@ -16,6 +17,7 @@ import (
type CronTask struct {
Logger *slog.Logger
Database db.Database
Settings settings.SettingsYML
}
// use gocron to check events in the Events table