Documentation
¶
Overview ¶
Package ui provides UI components and formatting utilities
This package provides UI components for displaying bandwidth statistics and various formatting utilities for human-readable display of bandwidth, bytes, and duration values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBandwidth ¶
FormatBandwidth formats bandwidth for UI display
func FormatBytes ¶
FormatBytes formats bytes in a human-readable way
func FormatDuration ¶
FormatDuration formats a duration in a human-readable way
Types ¶
type Components ¶
type Components struct {
// contains filtered or unexported fields
}
Enhanced UI components
func (*Components) GetStats ¶
func (c *Components) GetStats() *Stats
GetStats returns the current statistics
type KeyMap ¶
type KeyMap struct {
Reset key.Binding
Pause key.Binding
Stats key.Binding
DisplayMode key.Binding
Quit key.Binding
}
KeyMap defines the key bindings for the application
Click to show internal directories.
Click to hide internal directories.