Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Procs = make(map[string]*model.ProcCollect) ProcsWithScheduler = make(map[string]*ProcScheduler) )
Functions ¶
func AddNewPorcCollect ¶
func AddNewPorcCollect(newCollect map[string]*model.ProcCollect)
func DelNoPorcCollect ¶
func DelNoPorcCollect(newCollect map[string]*model.ProcCollect)
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 (this *ProcScheduler) Schedule()
func (*ProcScheduler) Stop ¶
func (this *ProcScheduler) Stop()
Click to show internal directories.
Click to hide internal directories.