add json to NadNotifier
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type NadNotifier struct {
|
type NadNotifier struct {
|
||||||
Address string // http://host:port/path
|
Address string `json:"address"` // http://host:port/path
|
||||||
SkipSSLVerify bool
|
SkipSSLVerify bool `json:"skip_ssl_verify"`
|
||||||
AccessToken string
|
AccessToken string `json:"access_token"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify 方法将传入的 Notify 信息序列化为 JSON,
|
// Notify 方法将传入的 Notify 信息序列化为 JSON,
|
||||||
|
Reference in New Issue
Block a user