Notifier consist of all the sub components required to use Slack API
| 15 | |
| 16 | // Notifier consist of all the sub components required to use Slack API |
| 17 | type Notifier struct { |
| 18 | Username string `json:"username"` |
| 19 | Channel string `json:"channel"` |
| 20 | Webhook string `json:"webhook"` |
| 21 | } |
| 22 | |
| 23 | // New creates a new Notifier instance based on json config |
| 24 | func New(config json.RawMessage) (Notifier, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected