You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package models
-
- const WEBHOOKKEY = "webhook"
- const NOTIFYSCRIPT = "notify_script"
- const NOTIFYCHANNEL = "notify_channel"
- const NOTIFYCONTACT = "notify_contact"
-
- type Webhook struct {
- Enable bool `json:"enable"`
- Url string `json:"url"`
- BasicAuthUser string `json:"basic_auth_user"`
- BasicAuthPass string `json:"basic_auth_pass"`
- Timeout int `json:"timeout"`
- HeaderMap map[string]string `json:"headers"`
- Headers []string `json:"headers_str"`
- SkipVerify bool `json:"skip_verify"`
- }
-
- type NotifyScript struct {
- Enable bool `json:"enable"`
- Type int `json:"type"` // 0 script 1 path
- Content string `json:"content"`
- Timeout int `json:"timeout"`
- }
-
- type NotifyChannel struct {
- Name string `json:"name"`
- Ident string `json:"ident"`
- Hide bool `json:"hide"`
- BuiltIn bool `json:"built_in"`
- }
-
- type NotifyContact struct {
- Name string `json:"name"`
- Ident string `json:"ident"`
- Hide bool `json:"hide"`
- BuiltIn bool `json:"built_in"`
- }
|