procs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Procs              = make(map[string]*model.ProcCollect)
	ProcsWithScheduler = make(map[string]*ProcScheduler)
)

Functions

func AddNewProcCollect added in v1.0.2

func AddNewProcCollect(newCollect map[string]*model.ProcCollect)

func DelNoProcCollect added in v1.0.2

func DelNoProcCollect(newCollect map[string]*model.ProcCollect)

func Detect

func Detect()

func ProcCollect

func ProcCollect(p *model.ProcCollect)

Types

type ProcScheduler

type ProcScheduler struct {
	Ticker *time.Ticker
	Proc   *model.ProcCollect
	Quit   chan struct{}
}

func NewProcScheduler

func NewProcScheduler(p *model.ProcCollect) *ProcScheduler

func (*ProcScheduler) Schedule

func (p *ProcScheduler) Schedule()

func (*ProcScheduler) Stop

func (p *ProcScheduler) Stop()

Jump to

Keyboard shortcuts

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