lmsensors

package
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package lmsensors is a Go library reading lm-sensors data.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() common.Driver
Example
info, err := New().Get()
if err != nil {
	fmt.Printf("ERROR: %s", err)
}
fmt.Printf("GetCoreTempInfo: %+v", info)
Output:

Types

type LMSensorTemperature

type LMSensorTemperature struct {
	M map[string]float64
}

type LMsensor

type LMsensor struct {
	Adapter      string `json:"Adapter"`
	Temperatures map[string]*LMSensorTemperature
}

type ProcCPUInfo

type ProcCPUInfo struct {
	VendorId     string  `json:"vendor_id"`
	CPUName      string  `json:"cpu_name"`
	CoreId       string  `json:"core_id"`
	FrequencyMhz float64 `json:"frequency"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL