You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/results: \HostResult\ — canonical host result type with \Alive/\OpenPorts\ and JSON tags \�live/\open_ports. Replaces \DeviceInfo\ as interchange format for the event-driven API.
pkg/results: \HostResult.ToDeviceInfo()\ — conversion for compatibility with \DeviceInfo.
pkg/profile: \ScanProfile, \DefaultProfile, \Sanitize\ — scan configuration with \DefaultPorts, \Concurrency, \TimeoutMs\ and JSON tags.
pkg/events: \Event, \EventType\ (string-based), \HostDiscoveredData, \ProgressData\ — async event system via channel.
pkg/export: \ExportJSON, \ExportCSV\ for []results.HostResult\ with CSV sanitization.
pkg/scan: \Ping, \ReverseDNS, \GetMAC, \ScanPorts\ — delegation wrappers for \pkg/discovery\ and \pkg/ports.
Tests: Tests for all new packages (\pkg/results, \pkg/events, \pkg/profile, \pkg/export, \pkg/scan).
Changed
pkg/results/HostResult: Changed from type alias to \DeviceInfo\ to independent struct with \Alive/\OpenPorts\ fields and JSON tags (\�live/\open_ports). Existing code using \DeviceInfo\ is unaffected.
pkg/events/EventType: Changed from \int\ (iota) to \string\ for easier serialization in Wails and TUI frontends.