Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Ports = make(map[int]*models.PortCollect) PortsWithScheduler = make(map[int]*PortScheduler) )
Functions ¶
func AddNewPortCollect ¶
func AddNewPortCollect(newCollect map[int]*models.PortCollect)
func DelNoPortCollect ¶
func DelNoPortCollect(newCollect map[int]*models.PortCollect)
func PortCollect ¶
func PortCollect(p *models.PortCollect)
Types ¶
type PortScheduler ¶
type PortScheduler struct { Ticker *time.Ticker Port *models.PortCollect Quit chan struct{} }
func NewPortScheduler ¶
func NewPortScheduler(p *models.PortCollect) *PortScheduler
func (*PortScheduler) Schedule ¶
func (p *PortScheduler) Schedule()
func (*PortScheduler) Stop ¶
func (p *PortScheduler) Stop()
Click to show internal directories.
Click to hide internal directories.