From c7135fb97eeac9d3653942cfebc59efbf1cfa3b0 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Tue, 5 Nov 2019 12:22:18 -0800 Subject: [PATCH] Updated Notifier Example (markdown) --- Notifier-Example.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Notifier-Example.md b/Notifier-Example.md index 4276420..40b44a9 100644 --- a/Notifier-Example.md +++ b/Notifier-Example.md @@ -164,4 +164,9 @@ func (n *Example) OnUpdatedNotifier(s *Notification) { msg := fmt.Sprintf("received a update notifier trigger for notifier: %v\n", s.Method) n.AddQueue(msg) } -``` \ No newline at end of file +``` + +# 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). + +https://github.com/hunterlong/statping/blob/master/core/core.go#L183 \ No newline at end of file