Documentation ¶
Overview ¶
Package alert implements alert.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Email = &EmailType{}
)
View Source
var Manager = new(ManagerType)
View Source
var (
Telegram = new(TelegramCli)
)
Functions ¶
This section is empty.
Types ¶
type ManagerType ¶
type ManagerType struct {
// contains filtered or unexported fields
}
func (*ManagerType) Send ¶
func (m *ManagerType) Send(to, toName, subject, content string) (err error)
func (*ManagerType) Setup ¶
func (m *ManagerType) Setup()
type TelegramCli ¶
type TelegramCli struct {
// contains filtered or unexported fields
}
func (*TelegramCli) Send ¶
func (t *TelegramCli) Send(ctx context.Context, alertType, token, msg string) (err error)
func (*TelegramCli) SendAlert ¶
func (t *TelegramCli) SendAlert(msg string) (err error)
func (*TelegramCli) Setup ¶
func (t *TelegramCli) Setup()
Click to show internal directories.
Click to hide internal directories.