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 and enrichment data.

Enums§

ActionItem
Action that can be invoked on the currently selected entry.
ConnectionState
TCP connection state.
EntryStatus
Change-tracking status for a port entry between scan cycles.
ExportFormat
Output format for CLI export mode (--export).
ProcessesTab
Sub-tab inside the Processes section.
Protocol
Network transport protocol.
SortColumn
Column by which the port table can be sorted.
SshTab
Sub-tab inside the SSH section.
SuspiciousReason
Reason why a connection was flagged as suspicious.
ViewMode
Top-level section. Tab / Shift+Tab cycles between sections.

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.