discovery

package
v0.0.0-...-f056d1c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFullDiscovery

func RunFullDiscovery(cfg *config.Config) []state.Device

RunFullDiscovery performs ICMP ping sweep first, then SNMP polling of online devices

func RunICMPSweep

func RunICMPSweep(ctx context.Context, networks []string, workers int, limiter *rate.Limiter) []string

RunICMPSweep performs concurrent ICMP ping sweep across multiple networks Returns only the IP addresses that responded to pings The limiter parameter controls the global rate of ping operations The ctx parameter enables graceful shutdown and rate limiter cancellation

func RunPingDiscovery

func RunPingDiscovery(cidr string, icmpWorkers int) []state.Device

RunPingDiscovery performs concurrent ICMP ping sweep to find online devices

func RunSNMPScan

func RunSNMPScan(ips []string, snmpConfig *config.SNMPConfig, workers int) []state.Device

RunSNMPScan performs concurrent SNMP queries on a list of IP addresses Returns devices with SNMP data populated, gracefully handles SNMP failures

func RunScan

func RunScan(cfg *config.Config) []state.Device

RunScan performs concurrent SNMPv2c discovery across configured networks

func RunScanIPsOnly

func RunScanIPsOnly(cidr string) []string

RunScanIPsOnly returns all IP addresses in the specified CIDR range

Types

This section is empty.

Jump to

Keyboard shortcuts

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