alert

package
v1.0.9-mainnet Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDingRobot

func InitDingRobot()

func SendDingTalkTextMessage

func SendDingTalkTextMessage(level, brief, detail string) error

Types

type LogrusAlertHook

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

func NewLogrusAlertHook

func NewLogrusAlertHook(lvls []logrus.Level) *LogrusAlertHook

func (*LogrusAlertHook) Fire

func (hook *LogrusAlertHook) Fire(logEntry *logrus.Entry) error

func (*LogrusAlertHook) Levels

func (hook *LogrusAlertHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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