wecom

package
v0.0.0-...-77d0c99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL