Expand description
Core data types for the port monitor.
This module defines all shared types used across the scanner, session, and UI layers. The key types are:
PortEntry— a single network connection with process infoTrackedEntry— aPortEntryenriched with change-tracking statusSortState— current sort column and directionExportFormat— output format for CLI export
Structs§
- Port
Entry - A single network port entry.
- Process
Info - Information about the process that owns a network connection.
- Sort
State - Current sorting configuration: which column and direction.
- Tracked
Entry - A
PortEntrywith change-tracking metadata and enrichment data.
Enums§
- Connection
State - TCP connection state.
- Detail
Tab - Tab in the detail panel below the port table (selected process info).
- Entry
Status - Change-tracking status for a port entry between scan cycles.
- Export
Format - Output format for CLI export mode (
--export). - Protocol
- Network transport protocol.
- Sort
Column - Column by which the port table can be sorted.
- Suspicious
Reason - Reason why a connection was flagged as suspicious.
- View
Mode - Main view mode — what occupies the primary screen area.
Constants§
- GONE_
RETENTION - How long a “Gone” entry stays visible before removal. Gives the user time to notice a connection disappeared.
- TICK_
RATE - Auto-refresh interval for the TUI. The UI polls for new scan data at this rate.