monitor

package
v0.0.0-...-d79959a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TOKEN_DEMO_END = "#demo#stop#"
View Source
const TOKEN_DEMO_START = "#demo#start#"

parse log file

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMonitor

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

func NewLogMonitor

func NewLogMonitor(path string, onEvent func(topic string, data ...any)) *LogMonitor

func (*LogMonitor) Start

func (p *LogMonitor) Start(interval time.Duration)

func (*LogMonitor) Stop

func (p *LogMonitor) Stop()

type LogParser

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

func NewLogParser

func NewLogParser(path string) *LogParser

func (*LogParser) GetDemo

func (l *LogParser) GetDemo() string

type ProcessMonitor

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

func NewProcessMonitor

func NewProcessMonitor(processIsStarted func() bool, onEvent func(topic string, data ...any)) *ProcessMonitor

func (*ProcessMonitor) CompareStates

func (p *ProcessMonitor) CompareStates()

func (*ProcessMonitor) Start

func (p *ProcessMonitor) Start(interval time.Duration)

func (*ProcessMonitor) Stop

func (p *ProcessMonitor) Stop()

Jump to

Keyboard shortcuts

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