dingding_worknotice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSend 发送钉钉消息失败
	ErrSend = errors.New("send DINGDING fail")

	// ErrBadURL 钉钉 URL 格式不正确
	ErrBadURL = errors.New("bad DINGDING URL")
)

Functions

func New

func New(proxy string, messenger pb.NotifyServiceServer) subscriber.Subscriber

New 创建 WorkNoticeSubscriber

Types

type WorkNoticeSubscriber

type WorkNoticeSubscriber struct {
	// contains filtered or unexported fields
}

WorkNoticeSubscriber 输出插件:工作通知

func (WorkNoticeSubscriber) Name

Name WorkNoticeSubscriber 在 label 中对应的名字

func (WorkNoticeSubscriber) Publish

func (s WorkNoticeSubscriber) Publish(dest, content string, time int64, msg *types.Message) []error

Publish 发送 工作通知

func (WorkNoticeSubscriber) Status

func (WorkNoticeSubscriber) Status() interface{}

Status 目前没有用

Jump to

Keyboard shortcuts

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