drone-webhook/webhook.go

19 lines
575 B
Go
Raw Normal View History

2015-11-20 23:51:50 +00:00
package main
// Webhook represents a webhook.
2015-11-20 23:51:50 +00:00
type Webhook struct {
Urls []string `json:"urls"`
2015-11-21 01:39:05 +00:00
Debug bool `json:"debug"`
2015-11-20 23:51:50 +00:00
Auth BasicAuth `json:"auth"`
Headers map[string]string `json:"header"`
Method string `json:"method"`
Template string `json:"template"`
ContentType string `json:"content_type"`
}
// BasicAuth represents a HTTP basic authentication username and password.
2015-11-20 23:51:50 +00:00
type BasicAuth struct {
Username string `json:"username"`
Password string `json:"password"`
}