Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Procs = make(map[string]*models.ProcCollect) ProcsWithScheduler = make(map[string]*ProcScheduler) )
Functions ¶
func AddNewProcCollect ¶
func AddNewProcCollect(newCollect map[string]*models.ProcCollect)
func DelNoProcCollect ¶
func DelNoProcCollect(newCollect map[string]*models.ProcCollect)
func ProcCollect ¶
func ProcCollect(p *models.ProcCollect)
Types ¶
type Proc ¶
type ProcScheduler ¶
type ProcScheduler struct { Ticker *time.Ticker Proc *models.ProcCollect Quit chan struct{} }
func NewProcScheduler ¶
func NewProcScheduler(p *models.ProcCollect) *ProcScheduler
func (*ProcScheduler) Schedule ¶
func (p *ProcScheduler) Schedule()
func (*ProcScheduler) Stop ¶
func (p *ProcScheduler) Stop()
Click to show internal directories.
Click to hide internal directories.