monitor_message

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package monitor_message @Description: 钉钉群预警

Package monitor_message email send

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailCode

func EmailCode(email string) (code string, err error)

func NewDingDing added in v1.0.3

func NewDingDing(token string)

func Reply

func Reply(email, title, content string) (err error)

func Send

func Send(messageType, message string, isAtAll bool) error

Send Send("Error", " test", true)

func SendTelegram

func SendTelegram(chatID int64, token, text string)

SendTelegram ... @Description: SendTelegram 发送小飞机预警 @param chatID @param token @param text context

Types

type NailRobot

type NailRobot struct {
	Msgtype string `json:"msgtype"`
	Text    struct {
		Content string `json:"content"`
	} `json:"text"`
	At struct {
		AtMobiles []string `json:"atMobiles"`
		IsAtAll   bool     `json:"isAtAll"`
	} `json:"at"`
}

Jump to

Keyboard shortcuts

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