Documentation ¶
Index ¶
- Constants
- Variables
- func BuildAddrScannerFunc(funcs []scanfunc) func(context.Context, model.Addr) (model.EventDeviceDiscovered, error)
- func BuildAddrScanners(cfg *Config) []scanfunc
- func BuildNetworkScanFunc(q chan model.Addr, status *string) func(context.Context, model.Network) (string, error)
- func NetworkRescanFilter(cfg *Config) model.NetworkFilter
- func SetFlags(fs *pflag.FlagSet, cfg *Config)
- func SnmpArpTableRescanFilter(cfg *SNMPConfig) model.DeviceFilter
- func SnmpInterfaceRescanFilter(cfg *SNMPConfig) model.DeviceFilter
- type ArpConfig
- type Config
- type DiscoverDevicesFromSNMPDevice
- type DiscoverNetworksFromSNMPDevice
- type ICMPConfig
- type IPv6ExcludedFromDiscovery
- type NetworkScannerWorker
- type NoDeviceDiscoveredError
- type SNMPConfig
- type Worker
Constants ¶
View Source
const ( ArpDiscoverySource model.DiscoverySource = "ARP" PingDiscoverySource model.DiscoverySource = "PING" SNMPDiscoverySource model.DiscoverySource = "SNMP" SNMPArpDiscoverySource model.DiscoverySource = "SNMP_ARP" )
Variables ¶
View Source
var ErrIPv6ExcludedFromDiscovery = IPv6ExcludedFromDiscovery{}
View Source
var ErrNoDeviceDiscovered = NoDeviceDiscoveredError{}
Functions ¶
func BuildAddrScannerFunc ¶
func BuildAddrScanners ¶
func BuildAddrScanners(cfg *Config) []scanfunc
func BuildNetworkScanFunc ¶
func NetworkRescanFilter ¶
func NetworkRescanFilter(cfg *Config) model.NetworkFilter
func SnmpArpTableRescanFilter ¶
func SnmpArpTableRescanFilter(cfg *SNMPConfig) model.DeviceFilter
func SnmpInterfaceRescanFilter ¶
func SnmpInterfaceRescanFilter(cfg *SNMPConfig) model.DeviceFilter
Types ¶
type ICMPConfig ¶ added in v0.2.0
type IPv6ExcludedFromDiscovery ¶
func IPv6NetworkExcluded ¶
func IPv6NetworkExcluded(n model.Network) IPv6ExcludedFromDiscovery
func (IPv6ExcludedFromDiscovery) Error ¶
func (e IPv6ExcludedFromDiscovery) Error() string
func (IPv6ExcludedFromDiscovery) Is ¶
func (e IPv6ExcludedFromDiscovery) Is(target error) bool
type NetworkScannerWorker ¶ added in v0.2.0
func NewNetworkScannerWorker ¶ added in v0.2.0
func NewNetworkScannerWorker(status *string, devin chan model.Addr) *NetworkScannerWorker
func (*NetworkScannerWorker) Close ¶ added in v0.2.0
func (w *NetworkScannerWorker) Close()
func (*NetworkScannerWorker) Run ¶ added in v0.2.0
func (w *NetworkScannerWorker) Run(ctx context.Context)
type NoDeviceDiscoveredError ¶
func NoDeviceDiscovered ¶
func NoDeviceDiscovered(addr model.Addr) NoDeviceDiscoveredError
func (NoDeviceDiscoveredError) Error ¶
func (e NoDeviceDiscoveredError) Error() string
func (NoDeviceDiscoveredError) Is ¶
func (e NoDeviceDiscoveredError) Is(target error) bool
type SNMPConfig ¶ added in v0.2.0
type Worker ¶ added in v0.2.0
type Worker struct { In chan model.Addr *workerpool.Pool[model.Addr, model.EventDeviceDiscovered] }
Click to show internal directories.
Click to hide internal directories.