package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Nov 5, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Embed struct {
Title string `json:"title"`
Description string `json:"description"`
Color int `json:"color"`
Fields []*Field `json:"fields"`
}
type Field struct {
Name string `json:"name"`
Value string `json:"value"`
Inline bool `json:"inline"`
}
type Notifier struct {
Webhook string `json:"webhook"`
}
New creates a new Notifier instance based on json config
Notify implements notifier interface
Send request via Slack API to create incident
Type returns the notifier package name
type Payload struct {
Title string `json:"username"`
Content string `json:"content"`
Avatar string `json:"avatar_url"`
Embeds []*Embed `json:"embeds"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.