Add WIP proper webhook support (for gitea)

This commit is contained in:
2022-12-23 23:54:53 -07:00
parent 46245b73c9
commit b29d3a8f80
6 changed files with 2233 additions and 60 deletions
+9 -1
View File
@@ -2,16 +2,24 @@ package config
import (
"fmt"
"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
Webhook *Webhook
Cron *string
PollInterval uint64
}