package systeminfo// Code generated by cdproto-gen. DO NOT EDIT.import ()// GPUDevice describes a single graphics processor (GPU).//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-GPUDevicetypeGPUDevicestruct { 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. SubSysID float64`json:"subSysId,omitempty"`// Sub sys ID of the GPU, only available on Windows. Revision float64`json:"revision,omitempty"`// Revision of the GPU, only available on Windows. 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. DriverVendor string`json:"driverVendor"`// String description of the GPU driver vendor. DriverVersion string`json:"driverVersion"`// String description of the GPU driver version.}// Size describes the width and height dimensions of an entity.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-SizetypeSizestruct { Width int64`json:"width"`// Width in pixels. Height int64`json:"height"`// Height in pixels.}// VideoDecodeAcceleratorCapability describes a supported video decoding// profile with its associated minimum and maximum resolutions.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-VideoDecodeAcceleratorCapabilitytypeVideoDecodeAcceleratorCapabilitystruct { Profile string`json:"profile"`// Video codec profile that is supported, e.g. VP9 Profile 2. MaxResolution *Size`json:"maxResolution"`// Maximum video dimensions in pixels supported for this |profile|. MinResolution *Size`json:"minResolution"`// Minimum video dimensions in pixels supported for this |profile|.}// VideoEncodeAcceleratorCapability describes a supported video encoding// profile with its associated maximum resolution and maximum framerate.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-VideoEncodeAcceleratorCapabilitytypeVideoEncodeAcceleratorCapabilitystruct { Profile string`json:"profile"`// Video codec profile that is supported, e.g H264 Main. MaxResolution *Size`json:"maxResolution"`// Maximum video dimensions in pixels supported for this |profile|. MaxFramerateNumerator int64`json:"maxFramerateNumerator"`// Maximum encoding framerate in frames per second supported for this |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, 24000/1001 fps, etc. MaxFramerateDenominator int64`json:"maxFramerateDenominator"`}// SubsamplingFormat yUV subsampling type of the pixels of a given image.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-SubsamplingFormattypeSubsamplingFormatstring// String returns the SubsamplingFormat as string value.func ( SubsamplingFormat) () string {returnstring()}// SubsamplingFormat values.const (SubsamplingFormatYuv420SubsamplingFormat = "yuv420"SubsamplingFormatYuv422SubsamplingFormat = "yuv422"SubsamplingFormatYuv444SubsamplingFormat = "yuv444")// MarshalEasyJSON satisfies easyjson.Marshaler.func ( SubsamplingFormat) ( *jwriter.Writer) { .String(string())}// MarshalJSON satisfies json.Marshaler.func ( SubsamplingFormat) () ([]byte, error) {returneasyjson.Marshal()}// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.func ( *SubsamplingFormat) ( *jlexer.Lexer) { := .String()switchSubsamplingFormat() {caseSubsamplingFormatYuv420: * = SubsamplingFormatYuv420caseSubsamplingFormatYuv422: * = SubsamplingFormatYuv422caseSubsamplingFormatYuv444: * = SubsamplingFormatYuv444default: .AddError(fmt.Errorf("unknown SubsamplingFormat value: %v", )) }}// UnmarshalJSON satisfies json.Unmarshaler.func ( *SubsamplingFormat) ( []byte) error {returneasyjson.Unmarshal(, )}// ImageType image format of a given image.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-ImageTypetypeImageTypestring// String returns the ImageType as string value.func ( ImageType) () string {returnstring()}// ImageType values.const (ImageTypeJpegImageType = "jpeg"ImageTypeWebpImageType = "webp"ImageTypeUnknownImageType = "unknown")// MarshalEasyJSON satisfies easyjson.Marshaler.func ( ImageType) ( *jwriter.Writer) { .String(string())}// MarshalJSON satisfies json.Marshaler.func ( ImageType) () ([]byte, error) {returneasyjson.Marshal()}// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.func ( *ImageType) ( *jlexer.Lexer) { := .String()switchImageType() {caseImageTypeJpeg: * = ImageTypeJpegcaseImageTypeWebp: * = ImageTypeWebpcaseImageTypeUnknown: * = ImageTypeUnknowndefault: .AddError(fmt.Errorf("unknown ImageType value: %v", )) }}// UnmarshalJSON satisfies json.Unmarshaler.func ( *ImageType) ( []byte) error {returneasyjson.Unmarshal(, )}// ImageDecodeAcceleratorCapability describes a supported image decoding// profile with its associated minimum and maximum resolutions and subsampling.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-ImageDecodeAcceleratorCapabilitytypeImageDecodeAcceleratorCapabilitystruct { ImageType ImageType`json:"imageType"`// Image coded, e.g. Jpeg. MaxDimensions *Size`json:"maxDimensions"`// Maximum supported dimensions of the image in pixels. MinDimensions *Size`json:"minDimensions"`// Minimum supported dimensions of the image in pixels. Subsamplings []SubsamplingFormat`json:"subsamplings"`// Optional array of supported subsampling formats, e.g. 4:2:0, if known.}// GPUInfo provides information about the GPU(s) on the system.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-GPUInfotypeGPUInfostruct { Devices []*GPUDevice`json:"devices"`// 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"`// An optional array of GPU driver bug workarounds. VideoDecoding []*VideoDecodeAcceleratorCapability`json:"videoDecoding"`// Supported accelerated video decoding capabilities. VideoEncoding []*VideoEncodeAcceleratorCapability`json:"videoEncoding"`// Supported accelerated video encoding capabilities. ImageDecoding []*ImageDecodeAcceleratorCapability`json:"imageDecoding"`// Supported accelerated image decoding capabilities.}// ProcessInfo represents process info.//// See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-ProcessInfotypeProcessInfostruct { Type string`json:"type"`// Specifies process type. ID int64`json:"id"`// Specifies process id. CPUTime float64`json:"cpuTime"`// Specifies cumulative CPU usage in seconds across all threads of the process since the process start.}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.