systeminfo

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2017 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package systeminfo implements the SystemInfo domain. The SystemInfo domain defines methods and events for querying low-level system information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the SystemInfo domain with the connection set to conn.

Types

type GPUDevice

type GPUDevice struct {
	VendorID     float64 `json:"vendorId"`     // PCI ID of the GPU vendor, if available; 0 otherwise.
	DeviceID     float64 `json:"deviceId"`     // PCI ID of the GPU device, if available; 0 otherwise.
	VendorString string  `json:"vendorString"` // String description of the GPU vendor, if the PCI ID is not available.
	DeviceString string  `json:"deviceString"` // String description of the GPU device, if the PCI ID is not available.
}

GPUDevice Describes a single graphics processor (GPU).

type GPUInfo

type GPUInfo struct {
	Devices              []GPUDevice     `json:"devices"`                 // The graphics devices on the system. Element 0 is the primary GPU.
	AuxAttributes        json.RawMessage `json:"auxAttributes,omitempty"` // An optional dictionary of additional GPU related attributes.
	FeatureStatus        json.RawMessage `json:"featureStatus,omitempty"` // An optional dictionary of graphics features and their status.
	DriverBugWorkarounds []string        `json:"driverBugWorkarounds"`    // An optional array of GPU driver bug workarounds.
}

GPUInfo Provides information about the GPU(s) on the system.

type GetInfoReply

type GetInfoReply struct {
	GPU          GPUInfo `json:"gpu"`          // Information about the GPUs on the system.
	ModelName    string  `json:"modelName"`    // A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported.
	ModelVersion string  `json:"modelVersion"` // A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported.
	CommandLine  string  `json:"commandLine"`  // The command line string used to launch the browser. Will be the empty string if not supported.
}

GetInfoReply represents the return values for GetInfo in the SystemInfo domain.

Jump to

Keyboard shortcuts

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