diff --git a/Notifiers.md b/Notifiers.md index f1b354f..0d2f121 100644 --- a/Notifiers.md +++ b/Notifiers.md @@ -15,14 +15,10 @@ Statup has the `Notifier` interface which you'll need to include in your notifie ```go // Notifier interface is required to create a new Notifier type Notifier interface { - // Run will trigger inside of the notifier when enabled - Run() error - // OnSave is triggered when the notifier is saved - OnSave() error - // Test will run a function inside the notifier to Test if it works - Test() error - // Select returns the *Notification for a notifier - Select() *Notification + OnSave() error // OnSave is triggered when the notifier is saved + Send(interface{}) error // OnSave is triggered when the notifier is saved + Test() error // Test will run a function inside the notifier to Test if it works + Select() *Notification // Select returns the *Notification for a notifier } ``` @@ -70,4 +66,5 @@ You can completely custom your notifications to include a detailed form. - `Type` is a HTML input type for your field - `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) \ No newline at end of file +- `DbField` required field to save variable into database (read above) +- `Placeholder` optional field for inserting small hint under the input \ No newline at end of file