diff --git a/config/config.go b/config/config.go index e66e39c..04613d1 100644 --- a/config/config.go +++ b/config/config.go @@ -6,24 +6,6 @@ import ( "git.ohea.xyz/golang/config" ) -type WebhookSender string - -const ( - Gitea WebhookSender = "gitea" -) - -type Webhook struct { - Sender WebhookSender - Secret string -} - -type Job struct { - URL string - Webhook *Webhook - Cron *string - PollInterval uint64 -} - type Runner struct { Secret string } @@ -60,7 +42,6 @@ type Config struct { Port int DBConfig DBConfig PipelineConf PipelineConf - Jobs map[string]Job Runners map[string]Runner } @@ -88,7 +69,6 @@ func GetConfig() (config.Config[Config], error) { Source: "/opt/cursorius/working", }, }, - Jobs: make(map[string]Job), Runners: make(map[string]Runner), }, }