package
Version:
v0.0.0-...-fcfa923
Opens a new window with list of versions in this module.
Published: May 19, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewEmailAlerter() *emailAlert
NewEmailAlerter returns email alert
func NewTelegramAlerter() *telegramAlert
NewTelegramAlerter returns telegram alerter
SendEmailAlert sends alert to email account
by checking user's choice
SendTelegramAlert sends the alert to telegram account
check's alert setting before sending the alert
type Email interface {
SendEmail(msg, token, toEmail string) error
}
Email to send mail alert
type Telegram interface {
SendTelegramMessage(msgText, botToken string, chatID int64) error
}
Telegram to send telegram alert interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.