From 0ebeb3e136d422d90942eee68ff63467e23a0df7 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Tue, 5 Nov 2019 12:36:49 -0800 Subject: [PATCH] Updated Notifier Example (markdown) --- Notifier-Example.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Notifier-Example.md b/Notifier-Example.md index 79518d7..1a0c201 100644 --- a/Notifier-Example.md +++ b/Notifier-Example.md @@ -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)