Documentation
¶
Index ¶
- type BIOSInfo
- type CPUBasic
- type CPUCursorData
- type CPUInfo
- type ChartColors
- type ColorPalette
- type DiskInfo
- type DiskMountInfo
- type DiskRateInfo
- type DiskRateResponse
- type GPU
- type GPUInfo
- type GPUTempInfo
- type GPUTempsInfo
- type MemoryInfo
- type MetaInfo
- type ModulesInfo
- type NetworkInfo
- type NetworkRateInfo
- type NetworkRateResponse
- type ProcessCursorData
- type ProcessInfo
- type ProcessListResponse
- type ProgressBarColors
- type StatusColors
- type SystemHardware
- type SystemInfo
- type SystemMetrics
- type TemperatureColors
- type TemperatureSensor
- type UIColors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUCursorData ¶
type CPUInfo ¶
type CPUInfo struct {
Count int `json:"count"`
Model string `json:"model"`
Frequency float64 `json:"frequency"`
Temperature float64 `json:"temperature"`
Usage float64 `json:"usage"`
CoreUsage []float64 `json:"coreUsage"`
Total []float64 `json:"total"`
Cores [][]float64 `json:"cores"`
Cursor string `json:"cursor,omitempty"`
}
type ChartColors ¶ added in v0.0.7
type ChartColors struct {
NetworkDownload string `json:"network_download"`
NetworkUpload string `json:"network_upload"`
NetworkLine string `json:"network_line"`
CPUCoreLow string `json:"cpu_core_low"`
CPUCoreMedium string `json:"cpu_core_medium"`
CPUCoreHigh string `json:"cpu_core_high"`
DiskRead string `json:"disk_read"`
DiskWrite string `json:"disk_write"`
}
type ColorPalette ¶ added in v0.0.7
type ColorPalette struct {
UI UIColors `json:"ui"`
Charts ChartColors `json:"charts"`
ProgressBars ProgressBarColors `json:"progress_bars"`
Temperature TemperatureColors `json:"temperature"`
Status StatusColors `json:"status"`
}
func DefaultColorPalette ¶ added in v0.0.7
func DefaultColorPalette() *ColorPalette
DefaultColorPalette returns the default color palette matching current dgop colors
type DiskMountInfo ¶
type DiskRateInfo ¶ added in v0.0.5
type DiskRateResponse ¶ added in v0.0.5
type DiskRateResponse struct {
Disks []*DiskRateInfo `json:"disks"`
Cursor string `json:"cursor"`
}
type GPUTempInfo ¶
type GPUTempsInfo ¶
type GPUTempsInfo struct {
GPUTemps []GPUTempInfo `json:"gputemps"`
}
type MemoryInfo ¶
type MemoryInfo struct {
Total uint64 `json:"total"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
Free uint64 `json:"free"`
Available uint64 `json:"available"`
Buffers uint64 `json:"buffers"`
Cached uint64 `json:"cached"`
SReclaimable uint64 `json:"sreclaimable"`
ZfsArcSize uint64 `json:"zfsArcSize"`
SwapTotal uint64 `json:"swaptotal"`
SwapFree uint64 `json:"swapfree"`
}
type MetaInfo ¶
type MetaInfo struct {
CPU *CPUInfo `json:"cpu,omitempty"`
Memory *MemoryInfo `json:"memory,omitempty"`
Network []*NetworkInfo `json:"network,omitempty"`
NetRate *NetworkRateResponse `json:"netrate,omitempty"`
Disk []*DiskInfo `json:"disk,omitempty"`
DiskRate *DiskRateResponse `json:"diskrate,omitempty"`
DiskMounts []*DiskMountInfo `json:"diskmounts,omitempty"`
Processes []*ProcessInfo `json:"processes,omitempty"`
System *SystemInfo `json:"system,omitempty"`
Hardware *SystemHardware `json:"hardware,omitempty"`
GPU *GPUInfo `json:"gpu,omitempty"`
Cursor string `json:"cursor,omitempty"`
}
type ModulesInfo ¶
type ModulesInfo struct {
Available []string `json:"available"`
}
type NetworkInfo ¶
type NetworkRateInfo ¶ added in v0.0.5
type NetworkRateResponse ¶ added in v0.0.5
type NetworkRateResponse struct {
Interfaces []*NetworkRateInfo `json:"interfaces"`
Cursor string `json:"cursor"`
}
type ProcessCursorData ¶
type ProcessInfo ¶
type ProcessInfo struct {
PID int32 `json:"pid"`
PPID int32 `json:"ppid"`
CPU float64 `json:"cpu"`
PTicks float64 `json:"pticks"`
MemoryPercent float32 `json:"memoryPercent"`
MemoryKB uint64 `json:"memoryKB"`
MemoryCalculation string `json:"memoryCalculation"`
RSSKB uint64 `json:"rssKB"`
RSSPercent float32 `json:"rssPercent"`
PSSKB uint64 `json:"pssKB"`
PSSPercent float32 `json:"pssPercent"`
Username string `json:"username"`
Command string `json:"command"`
FullCommand string `json:"fullCommand"`
ExecutablePath string `json:"executablePath,omitempty"`
ChildCount int `json:"childCount,omitempty"`
}
type ProcessListResponse ¶
type ProcessListResponse struct {
Processes []*ProcessInfo `json:"processes"`
Cursor string `json:"cursor,omitempty"`
}
type ProgressBarColors ¶ added in v0.0.7
type ProgressBarColors struct {
MemoryLow string `json:"memory_low"`
MemoryMedium string `json:"memory_medium"`
MemoryHigh string `json:"memory_high"`
DiskLow string `json:"disk_low"`
DiskMedium string `json:"disk_medium"`
DiskHigh string `json:"disk_high"`
CPULow string `json:"cpu_low"`
CPUMedium string `json:"cpu_medium"`
CPUHigh string `json:"cpu_high"`
ProgressBackground string `json:"progress_background"`
}
type StatusColors ¶ added in v0.0.7
type SystemHardware ¶
type SystemInfo ¶
type SystemMetrics ¶
type SystemMetrics struct {
Memory *MemoryInfo `json:"memory"`
CPU *CPUInfo `json:"cpu"`
Network []*NetworkInfo `json:"network"`
Disk []*DiskInfo `json:"disk"`
Processes []*ProcessInfo `json:"processes"`
System *SystemInfo `json:"system"`
DiskMounts []*DiskMountInfo `json:"diskmounts"`
}
type TemperatureColors ¶ added in v0.0.7
type TemperatureSensor ¶ added in v0.0.5
type UIColors ¶ added in v0.0.7
type UIColors struct {
BorderPrimary string `json:"border_primary"`
BorderSecondary string `json:"border_secondary"`
HeaderBackground string `json:"header_background"`
HeaderText string `json:"header_text"`
TextPrimary string `json:"text_primary"`
TextSecondary string `json:"text_secondary"`
TextAccent string `json:"text_accent"`
SelectionBackground string `json:"selection_background"`
SelectionText string `json:"selection_text"`
}
Click to show internal directories.
Click to hide internal directories.