Documentation ¶
Index ¶
- type Client
- type Hardware
- type HardwareType
- type Node
- func (n *Node) HardwareType() HardwareType
- func (n *Node) IsHardware() bool
- func (n *Node) IsRoot() bool
- func (n *Node) IsSensor() bool
- func (n *Node) IsValue() bool
- func (n *Node) SensorType() Sensor
- func (n *Node) Stringify() string
- func (n *Node) Values() ([]Value, error)
- func (n *Node) Walk(fn Visitor) error
- type Sensor
- type Value
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hardware ¶
type Hardware struct { Type HardwareType Value string TypeIndex int TypeCount int }
Hardware value
type HardwareType ¶
type HardwareType int
HardwareType type https://github.com/openhardwaremonitor/openhardwaremonitor/blob/e199e0ccc69b4da92495266ebc0faf7daad97608/Hardware/IHardware.cs
const ( // UnknownHardware type UnknownHardware HardwareType = iota // Mainboard type Mainboard // SuperIO type SuperIO // CPU type CPU // RAM type RAM // GpuNvidia type GpuNvidia // GpuAti type GpuAti // TBalancer type TBalancer // Heatmaster type Heatmaster // HDD type HDD // Controller type for TBalancer or Heatmaster Controller // Computer type for host Computer )
func (HardwareType) String ¶
func (h HardwareType) String() string
type Node ¶
type Node struct { ID int `json:"id"` ImageURL string Max string Min string Text string Value string Children []Node }
Node from data
func (*Node) HardwareType ¶
func (n *Node) HardwareType() HardwareType
HardwareType returns HardwareType of node
func (*Node) IsHardware ¶
IsHardware returns true if json node is for hardware
type Sensor ¶
type Sensor int
Sensor for unit https://github.com/openhardwaremonitor/openhardwaremonitor/blob/e199e0ccc69b4da92495266ebc0faf7daad97608/Hardware/ISensor.cs
const ( // UnknownSensor in V UnknownSensor Sensor = iota // Voltage in V Voltage // Clock in MHz Clock // Temperature in °C Temperature // Load in % Load // Fan in RPM Fan // Flow in L/h Flow // Control in % Control // Level in % Level // Factor in 1 Factor // Power in W Power // Data in GB = 2^30 Bytes Data // SmallData in MB = 2^20 Bytes SmallData )
Click to show internal directories.
Click to hide internal directories.