hook

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.1.0

type Config interface {
	GetWebhook() string
	GetSecret() string
	GetContent() string
	GetTemplate() string
	GetType() string
}

type Notify

type Notify interface {
	notify.Notify
}

Notify 通知通用接口

func NewDingTalk

func NewDingTalk(receiverHookDingTalk Config) Notify

NewDingTalk 创建钉钉通知

func NewFeiShu

func NewFeiShu(config Config) Notify

NewFeiShu 创建飞书通知

func NewNotify

func NewNotify(config Config) (Notify, error)

NewNotify 创建通知

func NewOther

func NewOther(config Config) Notify

NewOther 创建企业微信通知

func NewWechat

func NewWechat(config Config) Notify

NewWechat 创建企业微信通知

Jump to

Keyboard shortcuts

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