Documentation ¶
Index ¶
- func NewLogNotifier(log logger.Logger) (*logNotifier, error)
- func NewPushoverNotifier(url string, token string, userKey string) *pushoverNotifier
- func NewSlackNotifier(url string, secret string) *slackNotifier
- func NewSmtpNotifier(args ArgsSmtpNotifier) *smtpNotifier
- func NewTelegramNotifier(url string, token string, chatID string) *telegramNotifier
- type ArgsSmtpNotifier
- type HTTPClientWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogNotifier ¶
NewLogNotifier creates a new log notifier instance
func NewPushoverNotifier ¶
NewPushoverNotifier will create a new Pushover notifier
func NewSlackNotifier ¶ added in v1.1.0
NewSlackNotifier will create a new Slack notifier
func NewSmtpNotifier ¶
func NewSmtpNotifier(args ArgsSmtpNotifier) *smtpNotifier
NewSmtpNotifier creates a new SMTP email notifier
func NewTelegramNotifier ¶
NewTelegramNotifier will create a new Telegram notifier
Types ¶
type ArgsSmtpNotifier ¶
ArgsSmtpNotifier represents the SMTP notifier arguments used in the constructor function
type HTTPClientWrapper ¶
type HTTPClientWrapper interface { GetHTTP(ctx context.Context, endpoint string) ([]byte, int, error) PostHTTP(ctx context.Context, endpoint string, data []byte) ([]byte, int, error) IsInterfaceNil() bool }
HTTPClientWrapper defines what an HTTP client wrapper should implement
Click to show internal directories.
Click to hide internal directories.