platform

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

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) AttachedDisplays

func (this *Platform) AttachedDisplays() []uint

Return attached displays

func (*Platform) LoadAverages

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

Return 1, 5 and 15 minute load averages

func (*Platform) NumberOfDisplays

func (this *Platform) NumberOfDisplays() uint

Return number of displays

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