monitor

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SharedValueQueue = NewValueQueue()

Functions

This section is empty.

Types

type ItemValue

type ItemValue struct {
	Item      string
	ValueJSON []byte
	CreatedAt int64
}

ItemValue 数据值定义

type ValueQueue

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

ValueQueue 数据记录队列

func NewValueQueue

func NewValueQueue() *ValueQueue

func (*ValueQueue) Add

func (this *ValueQueue) Add(item string, value maps.Map)

Add 添加数据

func (*ValueQueue) Loop

func (this *ValueQueue) Loop() error

Loop 单次循环

func (*ValueQueue) Start

func (this *ValueQueue) Start()

Start 启动队列

Jump to

Keyboard shortcuts

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