Documentation
¶
Overview ¶
Package notify 提供面板通知渠道的统一抽象
Index ¶
Constants ¶
View Source
const ( EncryptionNone = "none" EncryptionSSL = "ssl" EncryptionSTARTTLS = "starttls" )
SMTP 加密方式
View Source
const (
TypeSMTP = "smtp"
)
通知渠道类型
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
Notifier 通知渠道
type SMTPConfig ¶
type SMTPConfig struct {
Host string `json:"host"`
Port int `json:"port"`
Encryption string `json:"encryption"` // none / ssl / starttls
Username string `json:"username"`
Password string `json:"password"`
From string `json:"from"`
FromName string `json:"from_name"`
To []string `json:"to"`
SkipVerify bool `json:"skip_verify"`
}
SMTPConfig SMTP 渠道配置
Click to show internal directories.
Click to hide internal directories.