cpu

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDevices

func MarshalDevices(d []Device) []*sonm.CPUDevice

Types

type Device

type Device cpu.InfoStat

Device describes a CPU device.

func GetCPUDevices

func GetCPUDevices() ([]Device, error)

func Unmarshal

func Unmarshal(proto *sonm.CPUDevice) (Device, error)

func UnmarshalDevices

func UnmarshalDevices(d []*sonm.CPUDevice) ([]Device, error)

func (*Device) Hash

func (d *Device) Hash() []byte

func (*Device) Marshal

func (d *Device) Marshal() *sonm.CPUDevice

Jump to

Keyboard shortcuts

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