Remove replaced Job configuration from config file
This commit is contained in:
@@ -6,24 +6,6 @@ import (
|
|||||||
"git.ohea.xyz/golang/config"
|
"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 {
|
type Runner struct {
|
||||||
Secret string
|
Secret string
|
||||||
}
|
}
|
||||||
@@ -60,7 +42,6 @@ type Config struct {
|
|||||||
Port int
|
Port int
|
||||||
DBConfig DBConfig
|
DBConfig DBConfig
|
||||||
PipelineConf PipelineConf
|
PipelineConf PipelineConf
|
||||||
Jobs map[string]Job
|
|
||||||
Runners map[string]Runner
|
Runners map[string]Runner
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +69,6 @@ func GetConfig() (config.Config[Config], error) {
|
|||||||
Source: "/opt/cursorius/working",
|
Source: "/opt/cursorius/working",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Jobs: make(map[string]Job),
|
|
||||||
Runners: make(map[string]Runner),
|
Runners: make(map[string]Runner),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user