Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailNotify ¶
type MailNotify struct {
// contains filtered or unexported fields
}
func NewMailNotify ¶
func NewMailNotify(host string, port int, username, password, subject, from, to string) *MailNotify
func (*MailNotify) Send ¶
func (mailNotify *MailNotify) Send(message string) error
Send notify to email
type SingleNotify ¶
type TelegramNotify ¶
type TelegramNotify struct {
// contains filtered or unexported fields
}
func NewTelegramNotify ¶
func NewTelegramNotify(token string, chatID int64) *TelegramNotify
func (*TelegramNotify) Send ¶
func (tgNotify *TelegramNotify) Send(message string) error
Send notify to telegram
Click to show internal directories.
Click to hide internal directories.