Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MsgText ¶
type MsgText struct {
Content string `json:"content"`
}
MsgText is text message api model
type WeworkSender ¶
type WeworkSender struct { BaseURL string `default:"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key="` DebugKey string WarnKey string ErrorKey string }
WeworkSender can send notification to wechat work.
func (WeworkSender) SendRobotMsg ¶
func (s WeworkSender) SendRobotMsg(key, content string) error
SendRobotMsg send robot message by wechat work web api
Click to show internal directories.
Click to hide internal directories.