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 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"` }
Click to show internal directories.
Click to hide internal directories.