2015-11-20 23:51:50 +00:00
|
|
|
package main
|
|
|
|
|
2016-01-04 19:51:48 +00:00
|
|
|
// Params represents the valid paramenter options for the webhook plugin.
|
2015-12-09 09:04:10 +00:00
|
|
|
type Params struct {
|
2015-11-20 23:51:50 +00:00
|
|
|
Urls []string `json:"urls"`
|
2015-11-21 01:39:05 +00:00
|
|
|
Debug bool `json:"debug"`
|
2015-12-09 09:04:10 +00:00
|
|
|
Auth Auth `json:"auth"`
|
2015-11-20 23:51:50 +00:00
|
|
|
Headers map[string]string `json:"header"`
|
|
|
|
Method string `json:"method"`
|
|
|
|
Template string `json:"template"`
|
|
|
|
ContentType string `json:"content_type"`
|
|
|
|
}
|
|
|
|
|
2016-01-04 19:51:48 +00:00
|
|
|
// Auth represents a basic HTTP authentication username and password.
|
2015-12-09 09:04:10 +00:00
|
|
|
type Auth struct {
|
2015-11-20 23:51:50 +00:00
|
|
|
Username string `json:"username"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|