mirror of https://github.com/statping/statping
Updated Notifier Example (markdown)
parent
59f62ddadc
commit
0ebeb3e136
|
@ -163,24 +163,3 @@ func (n *Example) OnUpdatedNotifier(s *Notification) {
|
|||
n.AddQueue(msg)
|
||||
}
|
||||
```
|
||||
|
||||
# Adding Notifiers
|
||||
To add a notifier to the Statping application, simply append your Notifier in the `AttachNotifiers()` function inside of [core/core.go](https://github.com/hunterlong/statping/blob/master/core/core.go).
|
||||
|
||||
```go
|
||||
// AttachNotifiers will attach all the notifier's into the system
|
||||
func AttachNotifiers() error {
|
||||
return notifier.AddNotifiers(
|
||||
notifiers.Command,
|
||||
notifiers.Discorder,
|
||||
notifiers.Emailer,
|
||||
notifiers.LineNotify,
|
||||
notifiers.Mobile,
|
||||
notifiers.Slacker,
|
||||
notifiers.Telegram,
|
||||
notifiers.Twilio,
|
||||
notifiers.Webhook,
|
||||
)
|
||||
}
|
||||
```
|
||||
###### [AttachNotifiers](https://github.com/hunterlong/statping/blob/master/core/core.go#L183)
|
||||
|
|
Loading…
Reference in New Issue