afterburner

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterburnerClient

type AfterburnerClient struct {
	// contains filtered or unexported fields
}

func NewAfterburnerClient

func NewAfterburnerClient(host string, port int, username string, password string) *AfterburnerClient

func (*AfterburnerClient) GetMonitorData

func (c *AfterburnerClient) GetMonitorData() (*HardwareMonitor, error)

type HardwareMonitor

type HardwareMonitor struct {
	Header HardwareMonitorHeader     `xml:"HardwareMonitorHeader"`
	Data   HardwareMonitorEntries    `xml:"HardwareMonitorEntries"`
	Gpus   HardwareMonitorGpuEntries `xml:"HardwareMonitorGpuEntries"`
}

func ParseResponse

func ParseResponse(reader io.Reader) (*HardwareMonitor, error)

type HardwareMonitorEntries

type HardwareMonitorEntries struct {
	Entries []HardwareMonitorEntry `xml:"HardwareMonitorEntry"`
}

type HardwareMonitorEntry

type HardwareMonitorEntry struct {
	SourceName          string  `xml:"srcName"`
	SourceUnits         string  `xml:"srcUnits"`
	LocalizedSourceName string  `xml:"localizedSrcName"`
	LocalizedSourceUnit string  `xml:"localizedSrcUnits"`
	RecommendedFormat   string  `xml:"recommendedFormat"`
	Data                float64 `xml:"data"`
	MinLimit            float64 `xml:"minLimit"`
	MaxLimit            float64 `xml:"maxLimit"`
	Flags               string  `xml:"flags"`
	GpuIndex            int64   `xml:"gpu"`
	SourceId            string  `xml:"srcId"`
}

type HardwareMonitorGpuEntries

type HardwareMonitorGpuEntries struct {
	Entries []HardwareMonitorGpuEntry `xml:"HardwareMonitorGpuEntry"`
}

type HardwareMonitorGpuEntry

type HardwareMonitorGpuEntry struct {
	GpuId     string `xml:"gpuId"`
	Family    string `xml:"family"`
	Device    string `xml:"device"`
	Driver    string `xml:"driver"`
	BIOS      string `xml:"BIOS"`
	MemAmount string `xml:"memAmount"`
}

type HardwareMonitorHeader

type HardwareMonitorHeader struct {
	Signature     string `xml:"signature"`
	Version       string `xml:"version"`
	HeaderSize    int    `xml:"headerSize"`
	EntryCount    int    `xml:"entryCount"`
	EntrySize     int    `xml:"entrySize"`
	Time          int64  `xml:"time"`
	GpuEntryCount int    `xml:"gpuEntryCount"`
	GpuEntrySize  int    `xml:"gpuEntrySize"`
}

Jump to

Keyboard shortcuts

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