Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrMsgInvalidDataFormat = "Invalid data format" ErrMsgNoDataFound = "No data found" ErrMsgNoDataAvailable = "No data available" ErrMsgInvalidIPAddress = "Invalid IP address" ErrMsgConnectionFailed = "Connection failed" ErrMsgProviderNotConfigured = "Provider not configured" ErrMsgAuthenticationRequired = "Authentication required" ErrMsgServiceError = "Service error" )
Error message constants
View Source
const ( // Grid dimensions GridRows = 4 GridColumns = 2 ProvidersColWidth = 18 // Grid row indices TopBarRow = 0 HeaderRow = 1 ContentRow = 2 // Grid column indices ProvidersCol = 0 ResultsCol = 1 // Provider list indices PTRProviderIndex = 0 // File permissions LogFilePerms = 0o666 // UI Messages PressEnterMsg = "Press enter to load" PlaceholderText = " Enter IP address or FQDN/hostname" ProvidersHeader = "Providers" ResultsHeader = "Results" LogFileName = "app.log" // Loading spinner LoadingMsg = "Loading provider data..." )
UI Layout Constants
Variables ¶
View Source
var ( ErrNoDataAvailable = errors.New("no data available") ErrInvalidIP = errors.New("invalid IP address") ErrProviderError = errors.New("provider unavailable") ErrParsingFailed = errors.New("data parsing failed") )
Common UI error variables for simplified user messages
View Source
var ProgramLevel = new(slog.LevelVar) // Info by default
Functions ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.