notifier

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 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 DingTalkNotifier

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

func NewDingTalkNotifier

func NewDingTalkNotifier(token, secret string, logger *mylog.Logger) *DingTalkNotifier

func (*DingTalkNotifier) ReportError

func (n *DingTalkNotifier) ReportError(title, content string)

func (*DingTalkNotifier) SendNotification

func (n *DingTalkNotifier) SendNotification(title, content string, phoneNumbers []string) error

type Message added in v1.3.8

type Message struct {
	Title        string
	Content      string
	PhoneNumbers []string
	Time         time.Time
}

Jump to

Keyboard shortcuts

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