add webhook of config

master
codeskyblue 8 years ago
parent 4ed67ab7c2
commit 4cf18bb3f1

@ -14,7 +14,7 @@ Features
* [ ] Edit support
* [ ] Delete support
* [ ] Path auto complete <https://github.com/twitter/typeahead.js>
* [ ] Memory and CPU monitor
* [x] Memory and CPU monitor
* [x] HTTP Basic auth
* [ ] Github webhook

@ -113,6 +113,13 @@ type Program struct {
Users []string `yaml:"users"`
} `yaml:"pushover,omitempty"`
} `yaml:"notifications,omitempty" json:"-"`
WebHook struct {
Github struct {
Secret string `yaml:"secret"`
} `yaml:"github"`
Command string `yaml:"command"`
Timeout int `yaml:"timeout"`
} `yaml:"webhook,omitempty" json:"-"`
}
func (p *Program) Check() error {

Loading…
Cancel
Save