channel

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalk

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

func NewDingTalk

func NewDingTalk(token string, secret string) *DingTalk

func NewDingTalkWithKeyWord

func NewDingTalkWithKeyWord(token string, keyWord string) *DingTalk

func (*DingTalk) Name

func (d *DingTalk) Name() string

func (*DingTalk) Send

func (d *DingTalk) Send(ctx context.Context, title, message string) error

type Email

type Email struct {
	To string
}

func NewEmail

func NewEmail(to string) *Email

func (*Email) Name

func (e *Email) Name() string

func (*Email) Send

func (e *Email) Send(_ context.Context, title, message string) error

type Lark

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

func NewLark

func NewLark(token, secret string) *Lark

func NewLarkWithKeyWord

func NewLarkWithKeyWord(token, keyWord string) *Lark

func (*Lark) Name

func (l *Lark) Name() string

func (*Lark) Send

func (l *Lark) Send(ctx context.Context, title, message string) error

type Pushdeer

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

func NewPushdeer

func NewPushdeer(pushkey, url string) *Pushdeer

func (*Pushdeer) Name

func (p *Pushdeer) Name() string

func (*Pushdeer) Send

func (p *Pushdeer) Send(ctx context.Context, title, message string) error

type Telegram

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

func NewTelegram

func NewTelegram(secret, chatID, httpProxy string) *Telegram

func (*Telegram) Name

func (t *Telegram) Name() string

func (*Telegram) Send

func (t *Telegram) Send(ctx context.Context, title, message string) error

type WeCom

type WeCom struct {
	Webhook string
}

func NewWeCom

func NewWeCom(webhook string) *WeCom

func (*WeCom) Name

func (w *WeCom) Name() string

func (*WeCom) Send

func (w *WeCom) Send(c context.Context, title, message string) error

Jump to

Keyboard shortcuts

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