ports

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: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ports              = make(map[int]*model.PortCollect)
	PortsWithScheduler = make(map[int]*PortScheduler)
)

Functions

func AddNewPortCollect

func AddNewPortCollect(newCollect map[int]*model.PortCollect)

func DelNoPortCollect

func DelNoPortCollect(newCollect map[int]*model.PortCollect)

func Detect

func Detect()

func PortCollect

func PortCollect(p *model.PortCollect)

Types

type PortScheduler

type PortScheduler struct {
	Ticker *time.Ticker
	Port   *model.PortCollect
	Quit   chan struct{}
}

func NewPortScheduler

func NewPortScheduler(p *model.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