Updated Notifiers (markdown)

master
Hunter Long 2019-11-05 12:36:53 -08:00
parent 0ebeb3e136
commit d43d3ffce6
1 changed files with 22 additions and 1 deletions

@ -110,4 +110,25 @@ You can completely custom your notifications to include a detailed form.
- `Title` give your input element a title
- `Placeholder` optional field if you want a placeholder in input
- `DbField` required field to save variable into database (read above)
- `Placeholder` optional field for inserting small hint under the input
- `Placeholder` optional field for inserting small hint under the input
# 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)