Versions in this module Expand all Collapse all v1 v1.0.0 Mar 5, 2026 Changes in this version + var PortServices = map[int]string + var TopPorts = []int + type Host struct + DeviceType string + FirstSeen time.Time + Hostname string + IP string + IsGateway bool + IsLocal bool + LastSeen time.Time + LatencyHistory []float64 + LatencyMs float64 + MAC string + MissedScans int + Ports []Port + Status HostStatus + Vendor string + func (h *Host) OpenPorts() []Port + type HostStatus string + const StatusOffline + const StatusOnline + type Port struct + Number int + Service string + State PortState + type PortState string + const PortClosed + const PortOpen + type ScanResult struct + Gateway string + Hosts []*Host + Interface string + LocalIP string + ScanTime time.Time + Subnet string + type ScanState struct + Gateway string + Hosts map[string]*Host + Interface string + IsRoot bool + IsScanning bool + LocalIP string + Phase string + Progress float64 + Subnet string + TotalHosts int + func NewScanState() *ScanState + func (s *ScanState) GetHostList() []*Host + func (s *ScanState) Lock() + func (s *ScanState) RLock() + func (s *ScanState) RUnlock() + func (s *ScanState) Unlock() + func (s *ScanState) UpdateHost(ip string, fn func(*Host))