Documentation
¶
Index ¶
- Constants
- Variables
- func SendNotifyDiscord(webhook, content string) error
- func SendNotifyWx(msgType, msg, key string) error
- func SendNotifyWxCallFuncErr(key, funcName, errInfo, keyInfo string) error
- type Author
- type Embed
- type Field
- type Footer
- type Image
- type NotifyContent
- type NotifyDataWx
- type Webhook
Constants ¶
View Source
const ( NotifyWxTypeText = "text" NotifyWxTypeMarkdown = "markdown" NotifyUrlWx = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=%s" )
Variables ¶
View Source
var (
DefaultKey = ""
)
Functions ¶
func SendNotifyDiscord ¶
func SendNotifyWx ¶
func SendNotifyWxCallFuncErr ¶
Types ¶
type NotifyContent ¶
type NotifyContent struct {
Content string `json:"content"`
}
type NotifyDataWx ¶
type NotifyDataWx struct { MsgType string `json:"msgtype"` Markdown NotifyContent `json:"markdown"` Text NotifyContent `json:"text"` }
Click to show internal directories.
Click to hide internal directories.