Documentation
¶
Index ¶
- type AlertCount
- type AlertData
- type AlertTab
- type Dashboard
- type DashboardStats
- type DataCollector
- type FastConnectionInfo
- type FastProcessInfo
- type FileTab
- type ListenerInfo
- type NetworkCollector
- type NetworkData
- type NetworkTab
- type OverviewTab
- type ProcessCollector
- type ProcessData
- type ProcessTab
- type SystemData
- type SystemTab
- type Tab
- type TabContent
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertData ¶
type AlertData struct {
Recent []core.Alert
Count AlertCount
CollectedAt time.Time
}
type AlertTab ¶
type AlertTab struct {
// contains filtered or unexported fields
}
AlertTab shows security alerts
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
Dashboard represents the main TUI dashboard with high performance
func NewDashboard ¶
func NewDashboard() *Dashboard
NewDashboard creates a new high-performance TUI dashboard
func (*Dashboard) SetRefreshInterval ¶
SetRefreshInterval sets the dashboard refresh rate
type DashboardStats ¶
type DashboardStats struct {
CollectionTime time.Duration
RenderTime time.Duration
UpdateCount int64
CacheHits int64
CacheMisses int64
}
DashboardStats tracks performance metrics
type DataCollector ¶
DataCollector interface for high-performance data collection
type FastConnectionInfo ¶
type FastProcessInfo ¶
type FileTab ¶
type FileTab struct {
// contains filtered or unexported fields
}
FileTab shows filesystem activity
type ListenerInfo ¶
type NetworkCollector ¶
type NetworkCollector struct {
// contains filtered or unexported fields
}
NetworkCollector implements high-performance network data collection
func NewNetworkCollector ¶
func NewNetworkCollector() *NetworkCollector
func (*NetworkCollector) Collect ¶
func (nc *NetworkCollector) Collect() (interface{}, error)
func (*NetworkCollector) Type ¶
func (nc *NetworkCollector) Type() string
type NetworkData ¶
type NetworkData struct {
Connections []FastConnectionInfo
Listeners []ListenerInfo
Total int
Established int
Listening int
CollectedAt time.Time
}
type NetworkTab ¶
type NetworkTab struct {
// contains filtered or unexported fields
}
NetworkTab shows network connection information
func (*NetworkTab) IsDirty ¶
func (t *NetworkTab) IsDirty() bool
func (*NetworkTab) SetDirty ¶
func (t *NetworkTab) SetDirty(dirty bool)
func (*NetworkTab) Update ¶
func (t *NetworkTab) Update(data interface{}) tea.Cmd
type OverviewTab ¶
type OverviewTab struct {
// contains filtered or unexported fields
}
OverviewTab shows a summary of all system information
func (*OverviewTab) IsDirty ¶
func (t *OverviewTab) IsDirty() bool
func (*OverviewTab) SetDirty ¶
func (t *OverviewTab) SetDirty(dirty bool)
func (*OverviewTab) Update ¶
func (t *OverviewTab) Update(data interface{}) tea.Cmd
type ProcessCollector ¶
type ProcessCollector struct {
// contains filtered or unexported fields
}
ProcessCollector implements high-performance process data collection
func NewProcessCollector ¶
func NewProcessCollector() *ProcessCollector
func (*ProcessCollector) Collect ¶
func (pc *ProcessCollector) Collect() (interface{}, error)
func (*ProcessCollector) Type ¶
func (pc *ProcessCollector) Type() string
type ProcessData ¶
type ProcessData struct {
Processes []FastProcessInfo
Total int
Running int
Sleeping int
Zombie int
CollectedAt time.Time
}
High-performance data structures
type ProcessTab ¶
type ProcessTab struct {
// contains filtered or unexported fields
}
ProcessTab shows detailed process information
func (*ProcessTab) IsDirty ¶
func (t *ProcessTab) IsDirty() bool
func (*ProcessTab) SetDirty ¶
func (t *ProcessTab) SetDirty(dirty bool)
func (*ProcessTab) Update ¶
func (t *ProcessTab) Update(data interface{}) tea.Cmd
type SystemData ¶
type SystemTab ¶
type SystemTab struct {
// contains filtered or unexported fields
}
SystemTab shows system information and metrics
type Tab ¶
type Tab struct {
Name string
Content TabContent
// contains filtered or unexported fields
}
Tab represents a dashboard tab with caching