Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entries ¶
Entries representing key, value pairs for chips. Example (JSON style): "GPU": "+56.0°C" "CPU": "+68.0°C"
type Sensors ¶
Sensors struct represents lm-sensors output. Content field contains string output. Chips field contains map[string]Entries. Example (JSON style):
"coretemp-isa-0000": { "CPU": "+60.0°C", "GPU": "+48.0°C", }
func NewFromFile ¶
NewFromFile reads content from log file and returns constructed Sensors struct. A successful call returns err == nil.
func NewFromSystem ¶
NewFromSystem executes "sensors" system command and returns constructed Sensors struct. A successful call returns err == nil.
Click to show internal directories.
Click to hide internal directories.