notifiers

package
v1.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSign

func GenSign(secret string, timestamp int64) (string, error)

Types

type DingTalkNotifier

type DingTalkNotifier struct {
	AccessToken string `json:"access_token"`
	SecretToken string `json:"secret_token"`
}

func (*DingTalkNotifier) BuildAppPubishedMessage

func (d *DingTalkNotifier) BuildAppPubishedMessage(req shared.PublishRequest, result map[string]string) string

func (*DingTalkNotifier) Notify

func (d *DingTalkNotifier) Notify(jsonStr string) error

type LarkNotifier

type LarkNotifier struct {
	Key         string `json:"key,omitempty"`
	SecretToken string `json:"secret_token"`
}

func (*LarkNotifier) BuildAppPubishedMessage

func (l *LarkNotifier) BuildAppPubishedMessage(req shared.PublishRequest, result map[string]string) string

func (*LarkNotifier) Notify

func (l *LarkNotifier) Notify(partialJsonStr string) error

type WeComNotifier

type WeComNotifier struct {
	Key string
}

func (*WeComNotifier) BuildAppPubishedMessage

func (w *WeComNotifier) BuildAppPubishedMessage(req shared.PublishRequest, result map[string]string) string

func (*WeComNotifier) Notify

func (w *WeComNotifier) Notify(jsonStr string) error

type Webhook

type Webhook struct {
	Url []string
}

func (*Webhook) Notify

func (w *Webhook) Notify(req shared.PublishRequest, result map[string]string) error

Jump to

Keyboard shortcuts

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