Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemperature ¶
GetTemperature returns the host temperature or 0 if not available.
Types ¶
type Hardware ¶
type Hardware struct { }
Hardware represents the machine that is monitored.
func (*Hardware) ReadSample ¶
func (*Hardware) ReadSample() (*rpimonitor.Sample, error)
ReadSample extract various metrics in the current time.
func (*Hardware) ReadStatus ¶
func (*Hardware) ReadStatus() (*rpimonitor.Status, error)
ReadStatus extract static info about this device.
Click to show internal directories.
Click to hide internal directories.