Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookConfig ¶
type WebhookConfig struct { Vendor WebhookVendor `yaml:"vendor"` Secret string `yaml:"secret"` Events []string `yaml:"events"` }
type WebhookServer ¶
func NewWebhookServer ¶
func NewWebhookServer(addr string) *WebhookServer
func (*WebhookServer) RegisterWebhookHandler ¶
func (ws *WebhookServer) RegisterWebhookHandler(repo_name string, f func(http.ResponseWriter, *http.Request)) error
type WebhookVendor ¶
type WebhookVendor string
const ( Gitea WebhookVendor = "gitea" Github WebhookVendor = "github" Gitlab WebhookVendor = "gitlab" )
Click to show internal directories.
Click to hide internal directories.