alert

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm interface {
	SetHookURL(string)
	Send(ctx context.Context, content string) error
	Method() string
}

Alarm

type DingDing

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

DingDing

func NewDingDing

func NewDingDing() *DingDing

NewDingDing

func (*DingDing) Method

func (dd *DingDing) Method() string

Method

func (*DingDing) Send

func (dd *DingDing) Send(ctx context.Context, content string) error

Send

func (*DingDing) SetHookURL

func (dd *DingDing) SetHookURL(url string)

SetHookURL 设置RequestURL

Jump to

Keyboard shortcuts

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