wechat

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultApiURL           = "https://qyapi.weixin.qq.com/cgi-bin/"
	DefaultSendTimeout      = time.Second * 3
	ToUserBatchSize         = 1000
	ToPartyBatchSize        = 100
	ToTagBatchSize          = 100
	AccessTokenInvalid      = 42001
	DefaultTextTemplate     = `{{ template "nm.default.text" . }}`
	DefaultMarkdownTemplate = `{{ template "nm.default.markdown" . }}`
	MessageMaxSize          = 2048
	DefaultExpires          = time.Hour * 2
)

Variables

This section is empty.

Functions

func NewWechatNotifier

func NewWechatNotifier(logger log.Logger, receivers []config.Receiver, notifierCfg *config.Config) notifier.Notifier

Types

type Notifier

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

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context, data template.Data) []error

Jump to

Keyboard shortcuts

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