Skip to main content

Module model

Module model 

Source
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 info
  • TrackedEntry — a PortEntry enriched with change-tracking status
  • SortState — current sort column and direction
  • ExportFormat — output format for CLI export

Structs§

PortEntry
A single network port entry.
ProcessInfo
Information about the process that owns a network connection.
SortState
Current sorting configuration: which column and direction.
TrackedEntry
A PortEntry with change-tracking metadata.

Enums§

ConnectionState
TCP connection state.
DetailTab
Tab in the detail panel below the port table.
EntryStatus
Change-tracking status for a port entry between scan cycles.
ExportFormat
Output format for CLI export mode (--export).
Protocol
Network transport protocol.
SortColumn
Column by which the port table can be sorted.

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.