Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Hub stream.Hub
)
Functions ¶
This section is empty.
Types ¶
type Cpu ¶
type Cpu struct {
Cpuinfo *Processors `json:"processors"`
All float64 `json:"all"`
Usage map[int]float64 `json:"usage"`
// contains filtered or unexported fields
}
type Dashboard ¶
type Dashboard struct {
Memory *Memory
Cpu *Cpu
Uptime *Uptime
Disk *Disk
Nodes *Nodes
Devices *Devices
// contains filtered or unexported fields
}
func NewDashboard ¶
func NewDashboard() *Dashboard
func (*Dashboard) BroadcastOne ¶
type Devices ¶
type Devices struct {
Total int64 `json:"total"`
Status map[int64]*models.DeviceState `json:"status"`
}
func (*Devices) BroadcastOne ¶
type Memory ¶
type Processors ¶
Click to show internal directories.
Click to hide internal directories.