Documentation
¶
Overview ¶
Package wecom is the wecom notification package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyConfig ¶
type NotifyConfig struct { base.DefaultNotify `yaml:",inline"` WebhookURL string `yaml:"webhook" json:"webhook" jsonschema:"required,format=url,title=Webhook URL,description=The Webhook URL of Wecom"` }
NotifyConfig is the slack notification configuration
func (*NotifyConfig) Config ¶
func (c *NotifyConfig) Config(gConf global.NotifySettings) error
Config configures the slack notification
func (*NotifyConfig) SendWecom ¶
func (c *NotifyConfig) SendWecom(title, msg string) error
SendWecom is the wrapper of SendWecomNotification
func (*NotifyConfig) SendWecomNotification ¶
func (c *NotifyConfig) SendWecomNotification(msg string) error
SendWecomNotification will post to an 'Robot Webhook' url in Wecom Apps. It accepts some text and the Wecom robot will send it in group. https://developer.work.weixin.qq.com/document/path/91770
Click to show internal directories.
Click to hide internal directories.