scanner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkScanner

type NetworkScanner struct {
	CmdQ chan command.Command
	// contains filtered or unexported fields
}

NetworkScanner traverses IP networks looking for Devices.

func NewNetworkScanner

func NewNetworkScanner() (*NetworkScanner, error)

NewNetworkScanner creates a new NetworkScanner.

func (*NetworkScanner) Active

func (s *NetworkScanner) Active() bool

Active returns the value of the Scanner's active flag.

func (*NetworkScanner) ScanCnt

func (s *NetworkScanner) ScanCnt() int

ScanCnt returns the number of Networks currently being scanned.

func (*NetworkScanner) ScanProgress

func (s *NetworkScanner) ScanProgress(nid int64) (uint64, uint64, bool)

ScanProgress returns the progress of scanning the given Network. In particular, it returns: - the number of IP addresses scanned so far - the number Devices added so far - whether or not the given Network is currently being scanned. If the given Network is not currently being scanned, the first two numbers will be 0, obviously.

func (*NetworkScanner) Start

func (s *NetworkScanner) Start()

Start initiates the scan engine.

func (*NetworkScanner) Stop

func (s *NetworkScanner) Stop()

Stop tells the Scanner to stop.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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