logs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

* @Author: qida * @Date: 2019-06-14 13:12:45 * @LastEditors: qida * @LastEditTime: 2022-01-07 16:45:55 * @Description:

Index

Constants

This section is empty.

Variables

View Source
var (
	LogConn = logs.NewLogger(1000)
	LogTcp  = logs.NewLogger(1000)
	LogMail = logs.NewLogger(1000)
	Enc     = mahonia.NewEncoder("gb18030")
)
View Source
var (
	DebugList map[string]*tcp.Client
)

Functions

func ClientDebug

func ClientDebug(ip string, port int)

func Email

func Email()

func ServerDebug

func ServerDebug(port int)

Types

type Robot

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

func New

func New(token, secret string) *Robot

func (*Robot) SendLinkMessage

func (robot *Robot) SendLinkMessage(title string, text string, messageUrl string, picUrl string) error

func (*Robot) SendMarkdownMessage

func (robot *Robot) SendMarkdownMessage(title string, text string, atMobiles []string, isAtAll bool) error

func (*Robot) SendMessage

func (robot *Robot) SendMessage(msg interface{}) error

func (*Robot) SendTextMessage

func (robot *Robot) SendTextMessage(content string, atMobiles []string, isAtAll bool) error

Jump to

Keyboard shortcuts

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