scanner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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) GetProgress added in v0.2.0

func (s *NetworkScanner) GetProgress() map[int64]*ScanProgress

GetProgress returns the network scans currently executing, and their respective progress.

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.

type ScanProgress added in v0.2.0

type ScanProgress struct {
	Net     *model.Network
	Scanned uint64
	Added   uint64
}

ScanProgress represents the progress of a given Network scan.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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