File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ type Notify struct {
32
32
}
33
33
34
34
type Config struct {
35
- Platform Platform
36
- Token string
37
- Channel string
38
- Source string
39
- Severity string
40
- User string
41
- Password string
42
- Host string
35
+ Platform Platform `mapstructure:"platform"`
36
+ Token string `mapstructure:"token"`
37
+ Channel string `mapstructure:"channel"`
38
+ Source string `mapstructure:"source"`
39
+ Severity string `mapstructure:"severity"`
40
+ User string `mapstructure:"user"`
41
+ Password string `mapstructure:"password"`
42
+ Host string `mapstructure:"host"`
43
43
}
44
44
45
45
func NewNotify (config * Config ) * Notify {
@@ -69,7 +69,6 @@ func (n *Notify) Send(msg string) error {
69
69
default :
70
70
return errors .New ("not supported notify platform" )
71
71
}
72
- return nil
73
72
}
74
73
75
74
func (n * Notify ) sendPushOverNotify (msg string ) error {
You can’t perform that action at this time.
0 commit comments