Add WIP proper webhook support (for gitea)
This commit is contained in:
+9
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user