Documentation
¶
Index ¶
Constants ¶
View Source
const ( UrlGetToken = "https://qyapi.weixin.qq.com/cgi-bin/gettoken" UrlSend = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailNotifer ¶
type EmailNotifer struct { Logger *zap.Logger From string //Receivers []string SMTP SmtpSettings Template map[string]*EmailTmpl }
func (*EmailNotifer) PostInit ¶
func (en *EmailNotifer) PostInit() error
type SendResp ¶
type SendResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` Invalidparty string `json:"invalidparty"` Invalidtag string `json:"invalidtag"` Invaliduser string `json:"invaliduser"` Msgid string `json:"msgid"` ResponseCode string `json:"response_code"` Unlicenseduser string `json:"unlicenseduser"` }
type SmtpSettings ¶
type TeamsNotify ¶
type WechatNotifer ¶
type WechatNotifer struct { CorpID string Secret string AgentID string Template map[string]*WechatTmpl Logger *zap.Logger // contains filtered or unexported fields }
func (*WechatNotifer) PostInit ¶
func (wn *WechatNotifer) PostInit() error
type WechatTmpl ¶
Click to show internal directories.
Click to hide internal directories.