Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseNotifier ¶
notifier基础类
func (*BaseNotifier) AddMeta ¶
func (n *BaseNotifier) AddMeta(key string, val interface{})
func (*BaseNotifier) GetDelims ¶
func (n *BaseNotifier) GetDelims() (left, right string)
func (*BaseNotifier) GetMeta ¶
func (n *BaseNotifier) GetMeta() map[string]interface{}
func (*BaseNotifier) SetDelims ¶
func (n *BaseNotifier) SetDelims(left, right string)
type EmailConfig ¶
type EmailConfig struct { BaseNotifier //邮件服务器配置 Host, User, Password string Port int //发送者和接收者邮箱信息 From, To, CC string //主题 Subject string //附件 Attach string // 发送内容 Body struct { ContentType string Content string Cmd map[string]string } }
邮件配置
func (*EmailConfig) Notify ¶
func (e *EmailConfig) Notify() error
Click to show internal directories.
Click to hide internal directories.