platform

package
v3.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Platform provides information about the hardware (Product, Serial Number, etc)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation struct{}

type Platform

type Platform struct {
	gopi.Unit
	*Implementation // Implementation-specific members
}

func (*Platform) LoadAverages

func (this *Platform) LoadAverages() (float64, float64, float64)

Return 1, 5 and 15 minute load averages

func (*Platform) Product

func (this *Platform) Product() string

Return product

func (*Platform) SerialNumber

func (this *Platform) SerialNumber() string

Return serial number

func (*Platform) String

func (this *Platform) String() string

func (*Platform) TemperatureZones

func (this *Platform) TemperatureZones() map[string]float32

func (*Platform) Type

func (this *Platform) Type() gopi.PlatformType

func (*Platform) Uptime

func (this *Platform) Uptime() time.Duration

Return uptime

Jump to

Keyboard shortcuts

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