xim

package
v0.0.0-...-d6b644b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(args ...interface{})

Error 企业微信错误通知,调试模式下只打日志

func ErrorMD

func ErrorMD(lines []string)

ErrorMD Markdown 格式企业微信出错通知,调试模式下只打日志

func Errorf

func Errorf(format string, a ...interface{})

Errorf 企业微信错误通知,调试模式下只打日志

func Info

func Info(args ...interface{})

Info 企业微信通知,调试模式下只打日志

func InfoMD

func InfoMD(lines []string)

InfoMD Markdown 格式企业微信一般通知,调试模式下只打日志

func Infof

func Infof(format string, a ...interface{})

Infof 企业微信通知,调试模式下只打日志

func SendRobotMarkdown

func SendRobotMarkdown(key string, lines []string)

SendRobotMarkdown 向机器人发送 Markdown 通知

func SendRobotMsg

func SendRobotMsg(key, tp, content string)

SendRobotMsg 发送机器人消息

func SetDebug

func SetDebug()

SetDebug 设置为调试模式,通知打印到日志

func Warn

func Warn(args ...interface{})

Warn 企业微信重要通知,调试模式下只打日志

func WarnMD

func WarnMD(lines []string)

WarnMD Markdown 格式企业微信重要通知,调试模式下只打日志

func Warnf

func Warnf(format string, a ...interface{})

Warnf 企业微信重要通知,调试模式下只打日志

Types

type MsgMarkdown

type MsgMarkdown struct {
	Content string `json:"content"`
}

MsgMarkdown MD消息

type MsgText

type MsgText struct {
	Content string `json:"content"`
}

MsgText 文本消息部分

type RobotMsg

type RobotMsg struct {
	MsgType  string       `json:"msgtype"`
	Text     *MsgText     `json:"text,omitempty"`
	MarkDown *MsgMarkdown `json:"markdown,omitempty"`
}

RobotMsg 群机器人消息

Jump to

Keyboard shortcuts

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