Documentation
¶
Index ¶
Constants ¶
View Source
const ( TextMsgType = "text" LinkMsgType = "link" MarkDownMsgType = "markdown" ActionCardMsgType = "actionCard" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DingActionCard ¶
type DingMarkdown ¶
type DingNotice ¶
type DingNotice struct{}
func (*DingNotice) Send ¶
func (d *DingNotice) Send(content string)
type DingText ¶
type DingText struct {
Msgtype string `json:"msgtype"`
Text struct {
Content string `json:"content"`
} `json:"text"`
At struct {
AtMobiles []string `json:"atMobiles"`
IsAtAll bool `json:"isAtAll"`
} `json:"at"`
}
钉钉消息
type Email ¶
type Email struct {
// ServerHost 邮箱服务器地址,如腾讯企业邮箱为smtp.exmail.qq.com
ServerHost string
// ServerPort 邮箱服务器端口,如腾讯企业邮箱为465
ServerPort int
// FromEmail 发件人邮箱地址
FromEmail string
// FromPasswd 发件人邮箱密码(注意,这里是明文形式),TODO:如果设置成密文?
FromPasswd string
// Toers 接收者邮件
Toers []string
// CCers 抄送者邮件
CCers []string
//这是主题
Subject string
//这是正文
Body string
// contains filtered or unexported fields
}
type EmailOption ¶
type EmailOption func(*Email)
func EmailBody ¶
func EmailBody(fields map[string]interface{}) EmailOption
Click to show internal directories.
Click to hide internal directories.