Documentation ¶
Index ¶
- func EnrichDevice(ctx context.Context, d EnrichDeviceRequest) (model.Device, error)
- func PortScannerFilter(cfg *PortScanConfig) model.DeviceFilter
- func SetFlags(fs *pflag.FlagSet, cfg *Config)
- type Config
- type DnsConfig
- type EnrichAllDevicesEvent
- type EnrichDeviceRequest
- type EnrichmentFields
- type OuiConfig
- type PortScanConfig
- type SnmpConfig
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichDevice ¶
func PortScannerFilter ¶
func PortScannerFilter(cfg *PortScanConfig) model.DeviceFilter
Types ¶
type Config ¶ added in v0.2.0
type Config struct { Enabled bool MaxWorkers int Dns *DnsConfig Oui *OuiConfig PortScan *PortScanConfig Snmp *SnmpConfig }
type EnrichAllDevicesEvent ¶
type EnrichAllDevicesEvent EnrichmentFields
func (EnrichAllDevicesEvent) String ¶
func (e EnrichAllDevicesEvent) String() string
type EnrichDeviceRequest ¶
type EnrichDeviceRequest struct { Fields EnrichmentFields Device model.Device }
func (EnrichDeviceRequest) String ¶
func (e EnrichDeviceRequest) String() string
type EnrichmentFields ¶
type EnrichmentFields struct { PerformDNSLookup bool PerformOUILookup bool PerformPortScan bool PerformSNMPScan bool Cfg *Config }
TODO: This should probably go away and just use the EnrichmentConfig
func DefaultEnrichmentFields ¶
func DefaultEnrichmentFields(cfg *Config) EnrichmentFields
func (EnrichmentFields) String ¶
func (e EnrichmentFields) String() string
type PortScanConfig ¶ added in v0.2.0
type SnmpConfig ¶ added in v0.2.0
type Worker ¶ added in v0.2.0
type Worker struct { In chan EnrichDeviceRequest *workerpool.Pool[EnrichDeviceRequest, model.Device] }
Click to show internal directories.
Click to hide internal directories.