systeminfo

package
v0.0.0-...-7421a99 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the Chrome SystemInfo domain.

The SystemInfo domain defines methods and events for querying low-level system information.

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPUDevice

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

GPUDevice describes a single graphics processor (GPU).

func (GPUDevice) MarshalEasyJSON

func (v GPUDevice) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GPUDevice) MarshalJSON

func (v GPUDevice) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GPUDevice) UnmarshalEasyJSON

func (v *GPUDevice) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GPUDevice) UnmarshalJSON

func (v *GPUDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GPUInfo

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

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

func (GPUInfo) MarshalEasyJSON

func (v GPUInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GPUInfo) MarshalJSON

func (v GPUInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GPUInfo) UnmarshalEasyJSON

func (v *GPUInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GPUInfo) UnmarshalJSON

func (v *GPUInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInfoParams

type GetInfoParams struct{}

GetInfoParams returns information about the system.

func GetInfo

func GetInfo() *GetInfoParams

GetInfo returns information about the system.

func (*GetInfoParams) Do

func (p *GetInfoParams) Do(ctxt context.Context, h cdp.FrameHandler) (gpu *GPUInfo, modelName string, modelVersion string, err error)

Do executes SystemInfo.getInfo.

returns:

gpu - Information about the GPUs on the system.
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 - 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.

func (GetInfoParams) MarshalEasyJSON

func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInfoParams) MarshalJSON

func (v GetInfoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInfoParams) UnmarshalEasyJSON

func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInfoParams) UnmarshalJSON

func (v *GetInfoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInfoReturns

type GetInfoReturns struct {
	Gpu          *GPUInfo `json:"gpu,omitempty"`          // Information about the GPUs on the system.
	ModelName    string   `json:"modelName,omitempty"`    // 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,omitempty"` // 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.
}

GetInfoReturns return values.

func (GetInfoReturns) MarshalEasyJSON

func (v GetInfoReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInfoReturns) MarshalJSON

func (v GetInfoReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInfoReturns) UnmarshalEasyJSON

func (v *GetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInfoReturns) UnmarshalJSON

func (v *GetInfoReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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