Documentation
¶
Overview ¶
Bubble Tea model, update loop, and state management for the NetScan TUI. Handles keyboard input, scan lifecycle, sorting, filtering, and auto-refresh on a 30-second interval.
Catppuccin Mocha-inspired colour palette and lipgloss styles shared across all TUI components.
TUI view rendering. Builds the header, device table, footer, and detail overlay from the current model state using lipgloss.
Index ¶
Constants ¶
View Source
const ( SortByIP = "IP" SortByHostname = "Hostname" SortByMAC = "MAC" SortByLatency = "Latency" )
View Source
const ( ViewTable = "table" ViewGraph = "graph" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) SetProgram ¶
Click to show internal directories.
Click to hide internal directories.