api

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	XMLName xml.Name `xml:"capabilities"`
	Host    Host     `xml:"host"`
}

func (*Capabilities) GetTSCCounter

func (c *Capabilities) GetTSCCounter() (*Counter, error)

type Counter

type Counter struct {
	Name      string    `xml:"name,attr"`
	Frequency int64     `xml:"frequency,attr"`
	Scaling   yesnobool `xml:"scaling,attr"`
}

type Host

type Host struct {
	UUID string  `xml:"uuid"`
	CPU  HostCPU `xml:"cpu"`
}

type HostCPU

type HostCPU struct {
	Arch    string    `xml:"arch"`
	Model   string    `xml:"model"`
	Vendor  string    `xml:"vendor"`
	Counter []Counter `xml:"counter"`
}

Jump to

Keyboard shortcuts

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