ports

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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 Detect

func Detect()

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()

Jump to

Keyboard shortcuts

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