Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCPUinfo ¶
func RenderCPUinfo(ctx context.Context, dataChannel chan *general.CPULoad, refreshRate uint64) error
RenderCPUinfo displays the CPU info page
func RenderCharts ¶
func RenderCharts(ctx context.Context, dataChannel chan general.AggregatedMetrics, refreshRate uint64) error
RenderCharts handles plotting graphs and charts for system stats in general.
Types ¶
type CPUPage ¶
type CPUPage struct { Grid *ui.Grid UsrChart *widgets.Gauge NiceChart *widgets.Gauge SysChart *widgets.Gauge IowaitChart *widgets.Gauge IrqChart *widgets.Gauge SoftChart *widgets.Gauge IdleChart *widgets.Gauge StealChart *widgets.Gauge CPUChart *widgets.Table CPUTable *viz.Table }
CPUPage contains the UI widgets for the UI rendered by the grofer -c command
func NewCPUPage ¶
NewCPUPage is a constructor for the CPUPage type
type MainPage ¶
type MainPage struct { Grid *ui.Grid MemoryChart *viz.HorizontalBarChart DiskChart *viz.Table NetworkChart *viz.SparklineGroup CPUTable *viz.CPUTableChart CPUChart *viz.LineGraph TemperatureTable *viz.Table InfoTable *viz.Table BatteryGauge *widgets.Gauge // contains filtered or unexported fields }
MainPage contains the UI widgets for the UI rendered by the grofer command
func (*MainPage) ToggleCPUWidget ¶
func (page *MainPage) ToggleCPUWidget() viz.ScrollableWidget
ToggleCPUWidget helps toggle the widget on grid used to display CPU usage
Click to show internal directories.
Click to hide internal directories.