mirror of https://github.com/statping/statping
Updated Notifiers (markdown)
parent
0ebeb3e136
commit
d43d3ffce6
23
Notifiers.md
23
Notifiers.md
|
@ -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)
|
Loading…
Reference in New Issue