webhookmsg

package
v0.0.0-...-1beea77 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//FeiShu 飞书
	FeiShu msgType = "FeiShu"
	// WeCom 企业微信
	WeCom msgType = "WeCom"
	// DingDing 钉钉
	DingDing msgType = "DingDing"
	// 电报
	Telegram msgType = "Telegram"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg interface {
	SendMsg(text string) error
}

func NewMsg

func NewMsg(url string, m msgType) (Msg, error)

NewMsg 生成消息结构体

type TelegramMsg

type TelegramMsg struct {
	Url string `json:"url"` // get 请求(token直接放入url中)
}

电报

func (TelegramMsg) SendMsg

func (t TelegramMsg) SendMsg(text string) error

Jump to

Keyboard shortcuts

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