info

package
v1.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: BSD-2-Clause Imports: 0 Imported by: 6

Documentation

Overview

Package info provides type definitions for use with the Chrome SystemInfo protocol

https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPUDevice

type GPUDevice struct {
	// PCI ID of the GPU vendor, if available; 0 otherwise.
	VendorID int `json:"vendorId"`

	// PCI ID of the GPU device, if available; 0 otherwise.
	DeviceID int `json:"deviceId"`

	// String description of the GPU vendor, if the PCI ID is not available.
	VendorString string `json:"vendorString"`

	// String description of the GPU device, if the PCI ID is not available.
	DeviceString string `json:"deviceString"`
}

GPUDevice describes a single graphics processor (GPU).

https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo/#type-GPUDevice

type GPUInfo

type GPUInfo struct {
	// The graphics devices on the system. Element 0 is the primary GPU.
	Devices []*GPUDevice `json:"devices"`

	// Optional. An optional dictionary of additional GPU related attributes.
	AuxAttributes map[string]string `json:"auxAttributes,omitempty"`

	// Optional. An optional dictionary of graphics features and their status.
	FeatureStatus map[string]string `json:"featureStatus,omitempty"`

	// An optional array of GPU driver bug workarounds.
	DriverBugWorkarounds []string `json:"driverBugWorkarounds"`
}

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

https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo/#type-GPUInfo

type GetInfoResult

type GetInfoResult struct {
	// Information about the GPUs on the system.
	GPU *GPUInfo `json:"gpu"`

	// 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.
	ModelName string `json:"modelName"`

	// 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.
	ModelVersion string `json:"modelVersion"`

	// The command line string used to launch the browser. Will be the empty
	// string if not supported.
	CommandLine string `json:"commandLine"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetInfoResult represents the result of calls to SystemInfo.getInfo.

https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo/#method-getInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳