hw

package
v0.0.0-...-ffb5472 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemperature

func GetTemperature() (float64, error)

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.

Jump to

Keyboard shortcuts

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