Documentation ¶
Overview ¶
通知发送 目前支持邮件和 alertover
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alertover ¶
type Alertover struct {
// contains filtered or unexported fields
}
Alertover contain a source Alertover website: https://www.alertover.com/
func NewAlertover ¶
NewAlertover create a Alertover instance
type EmailNotifier ¶
type EmailNotifier struct {
// contains filtered or unexported fields
}
EmailNotifier has param SMTPHost, SMTP account
func NewEmailNotifier ¶
func NewEmailNotifier(host, from, password string) (*EmailNotifier, error)
NewEmailNotifier create a EmailNotifier instance host 邮箱 stmp 地址 from 邮箱地址 password 邮箱密码
type ErrorHook ¶
type ErrorHook struct {
// contains filtered or unexported fields
}
func NewHookByENV ¶
type LarkWebhook ¶
type LarkWebhook struct {
// contains filtered or unexported fields
}
type Receiver ¶
type Receiver struct { ID string // receiver ident Type ReceiverType }
Receiver represent a lark message receiver
func ChatReceiver ¶
ChatReceiver create a receiver from a chat id.
func EmailReceiver ¶
EmailReceiver create a receiver from email.
type ReceiverType ¶
type ReceiverType string
ReceiverType ...
var ( ReceiverEmail ReceiverType = "email" ReceiverChatID ReceiverType = "chatID" ReceiverUserID ReceiverType = "userID" ReceiverOpenID ReceiverType = "openID" )
Click to show internal directories.
Click to hide internal directories.