monitor

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	SendTextMsg(ctx context.Context, content string) error
}

type Monitor

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

func NewMonitor

func NewMonitor(handlerList ...Handler) *Monitor

@desc @auth liuguoqiang 2020-12-07 @param @return

func (*Monitor) Close

func (monitor *Monitor) Close(timeout int64)

@desc 程序退出前阻塞直到将数据发送出去,或者超时 @auth liuguoqiang 2020-12-07 @param @return

func (*Monitor) SendTextMsg

func (monitor *Monitor) SendTextMsg(ctx context.Context, content string) error

@desc 发送本消息 @auth liuguoqiang 2020-12-07 @param @return

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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