push

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelDingDing int = 1
	ChannelWeChat   int = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DingDing

type DingDing struct{}

func (*DingDing) Send

func (d *DingDing) Send(notification view.Notification, alarm *db.Alarm, channel *db.AlarmChannel, oneTheLogs string) (err error)

type Operator

type Operator interface {
	Send(notification view.Notification, alarm *db.Alarm, channel *db.AlarmChannel, oneTheLogs string) (err error)
}

func Instance

func Instance(typ int) (Operator, error)

type WeChat

type WeChat struct{}

func (*WeChat) Send

func (d *WeChat) Send(notification view.Notification, alarm *db.Alarm, channel *db.AlarmChannel, oneTheLogs string) (err error)

Send ... oneTheLogs one of the logs, detail info

Jump to

Keyboard shortcuts

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