emulation

package
v0.0.0-...-a72e670 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 8 Imported by: 198

Documentation

Overview

Package emulation provides the Chrome DevTools Protocol commands, types, and events for the Emulation domain.

This domain emulates different environments for the page.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandClearDeviceMetricsOverride        = "Emulation.clearDeviceMetricsOverride"
	CommandClearGeolocationOverride          = "Emulation.clearGeolocationOverride"
	CommandResetPageScaleFactor              = "Emulation.resetPageScaleFactor"
	CommandSetFocusEmulationEnabled          = "Emulation.setFocusEmulationEnabled"
	CommandSetAutoDarkModeOverride           = "Emulation.setAutoDarkModeOverride"
	CommandSetCPUThrottlingRate              = "Emulation.setCPUThrottlingRate"
	CommandSetDefaultBackgroundColorOverride = "Emulation.setDefaultBackgroundColorOverride"
	CommandSetDeviceMetricsOverride          = "Emulation.setDeviceMetricsOverride"
	CommandSetDevicePostureOverride          = "Emulation.setDevicePostureOverride"
	CommandClearDevicePostureOverride        = "Emulation.clearDevicePostureOverride"
	CommandSetScrollbarsHidden               = "Emulation.setScrollbarsHidden"
	CommandSetDocumentCookieDisabled         = "Emulation.setDocumentCookieDisabled"
	CommandSetEmitTouchEventsForMouse        = "Emulation.setEmitTouchEventsForMouse"
	CommandSetEmulatedMedia                  = "Emulation.setEmulatedMedia"
	CommandSetEmulatedVisionDeficiency       = "Emulation.setEmulatedVisionDeficiency"
	CommandSetGeolocationOverride            = "Emulation.setGeolocationOverride"
	CommandGetOverriddenSensorInformation    = "Emulation.getOverriddenSensorInformation"
	CommandSetSensorOverrideEnabled          = "Emulation.setSensorOverrideEnabled"
	CommandSetSensorOverrideReadings         = "Emulation.setSensorOverrideReadings"
	CommandSetPressureSourceOverrideEnabled  = "Emulation.setPressureSourceOverrideEnabled"
	CommandSetPressureStateOverride          = "Emulation.setPressureStateOverride"
	CommandSetIdleOverride                   = "Emulation.setIdleOverride"
	CommandClearIdleOverride                 = "Emulation.clearIdleOverride"
	CommandSetPageScaleFactor                = "Emulation.setPageScaleFactor"
	CommandSetScriptExecutionDisabled        = "Emulation.setScriptExecutionDisabled"
	CommandSetTouchEmulationEnabled          = "Emulation.setTouchEmulationEnabled"
	CommandSetVirtualTimePolicy              = "Emulation.setVirtualTimePolicy"
	CommandSetLocaleOverride                 = "Emulation.setLocaleOverride"
	CommandSetTimezoneOverride               = "Emulation.setTimezoneOverride"
	CommandSetDisabledImageTypes             = "Emulation.setDisabledImageTypes"
	CommandSetHardwareConcurrencyOverride    = "Emulation.setHardwareConcurrencyOverride"
	CommandSetUserAgentOverride              = "Emulation.setUserAgentOverride"
	CommandSetAutomationOverride             = "Emulation.setAutomationOverride"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearDeviceMetricsOverrideParams

type ClearDeviceMetricsOverrideParams struct{}

ClearDeviceMetricsOverrideParams clears the overridden device metrics.

func ClearDeviceMetricsOverride

func ClearDeviceMetricsOverride() *ClearDeviceMetricsOverrideParams

ClearDeviceMetricsOverride clears the overridden device metrics.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-clearDeviceMetricsOverride

func (*ClearDeviceMetricsOverrideParams) Do

Do executes Emulation.clearDeviceMetricsOverride against the provided context.

func (ClearDeviceMetricsOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearDeviceMetricsOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearDeviceMetricsOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ClearDevicePostureOverrideParams

type ClearDevicePostureOverrideParams struct{}

ClearDevicePostureOverrideParams clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set.

func ClearDevicePostureOverride

func ClearDevicePostureOverride() *ClearDevicePostureOverrideParams

ClearDevicePostureOverride clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-clearDevicePostureOverride

func (*ClearDevicePostureOverrideParams) Do

Do executes Emulation.clearDevicePostureOverride against the provided context.

func (ClearDevicePostureOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearDevicePostureOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ClearDevicePostureOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearDevicePostureOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ClearGeolocationOverrideParams

type ClearGeolocationOverrideParams struct{}

ClearGeolocationOverrideParams clears the overridden Geolocation Position and Error.

func ClearGeolocationOverride

func ClearGeolocationOverride() *ClearGeolocationOverrideParams

ClearGeolocationOverride clears the overridden Geolocation Position and Error.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-clearGeolocationOverride

func (*ClearGeolocationOverrideParams) Do

Do executes Emulation.clearGeolocationOverride against the provided context.

func (ClearGeolocationOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearGeolocationOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ClearGeolocationOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearGeolocationOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ClearIdleOverrideParams

type ClearIdleOverrideParams struct{}

ClearIdleOverrideParams clears Idle state overrides.

func ClearIdleOverride

func ClearIdleOverride() *ClearIdleOverrideParams

ClearIdleOverride clears Idle state overrides.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-clearIdleOverride

func (*ClearIdleOverrideParams) Do

func (p *ClearIdleOverrideParams) Do(ctx context.Context) (err error)

Do executes Emulation.clearIdleOverride against the provided context.

func (ClearIdleOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearIdleOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ClearIdleOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearIdleOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type DevicePosture

type DevicePosture struct {
	Type DevicePostureType `json:"type"` // Current posture of the device
}

DevicePosture [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DevicePosture

func (DevicePosture) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DevicePosture) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DevicePosture) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DevicePosture) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type DevicePostureType

type DevicePostureType string

DevicePostureType current posture of the device.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DevicePosture

const (
	DevicePostureTypeContinuous DevicePostureType = "continuous"
	DevicePostureTypeFolded     DevicePostureType = "folded"
)

DevicePostureType values.

func (DevicePostureType) MarshalEasyJSON

func (t DevicePostureType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DevicePostureType) MarshalJSON

func (t DevicePostureType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (DevicePostureType) String

func (t DevicePostureType) String() string

String returns the DevicePostureType as string value.

func (*DevicePostureType) UnmarshalEasyJSON

func (t *DevicePostureType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DevicePostureType) UnmarshalJSON

func (t *DevicePostureType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisabledImageType

type DisabledImageType string

DisabledImageType enum of image types that can be disabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DisabledImageType

const (
	DisabledImageTypeAvif DisabledImageType = "avif"
	DisabledImageTypeWebp DisabledImageType = "webp"
)

DisabledImageType values.

func (DisabledImageType) MarshalEasyJSON

func (t DisabledImageType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DisabledImageType) MarshalJSON

func (t DisabledImageType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (DisabledImageType) String

func (t DisabledImageType) String() string

String returns the DisabledImageType as string value.

func (*DisabledImageType) UnmarshalEasyJSON

func (t *DisabledImageType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DisabledImageType) UnmarshalJSON

func (t *DisabledImageType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisplayFeature

type DisplayFeature struct {
	Orientation DisplayFeatureOrientation `json:"orientation"` // Orientation of a display feature in relation to screen
	Offset      int64                     `json:"offset"`      // The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.
	MaskLength  int64                     `json:"maskLength"`  // A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length.
}

DisplayFeature [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DisplayFeature

func (DisplayFeature) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisplayFeature) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DisplayFeature) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisplayFeature) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type DisplayFeatureOrientation

type DisplayFeatureOrientation string

DisplayFeatureOrientation orientation of a display feature in relation to screen.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DisplayFeature

const (
	DisplayFeatureOrientationVertical   DisplayFeatureOrientation = "vertical"
	DisplayFeatureOrientationHorizontal DisplayFeatureOrientation = "horizontal"
)

DisplayFeatureOrientation values.

func (DisplayFeatureOrientation) MarshalEasyJSON

func (t DisplayFeatureOrientation) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DisplayFeatureOrientation) MarshalJSON

func (t DisplayFeatureOrientation) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (DisplayFeatureOrientation) String

func (t DisplayFeatureOrientation) String() string

String returns the DisplayFeatureOrientation as string value.

func (*DisplayFeatureOrientation) UnmarshalEasyJSON

func (t *DisplayFeatureOrientation) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DisplayFeatureOrientation) UnmarshalJSON

func (t *DisplayFeatureOrientation) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type EventVirtualTimeBudgetExpired

type EventVirtualTimeBudgetExpired struct{}

EventVirtualTimeBudgetExpired notification sent after the virtual time budget for the current VirtualTimePolicy has run out.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#event-virtualTimeBudgetExpired

func (EventVirtualTimeBudgetExpired) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventVirtualTimeBudgetExpired) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventVirtualTimeBudgetExpired) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventVirtualTimeBudgetExpired) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetOverriddenSensorInformationParams

type GetOverriddenSensorInformationParams struct {
	Type SensorType `json:"type"`
}

GetOverriddenSensorInformationParams [no description].

func GetOverriddenSensorInformation

func GetOverriddenSensorInformation(typeVal SensorType) *GetOverriddenSensorInformationParams

GetOverriddenSensorInformation [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-getOverriddenSensorInformation

parameters:

type

func (*GetOverriddenSensorInformationParams) Do

func (p *GetOverriddenSensorInformationParams) Do(ctx context.Context) (requestedSamplingFrequency float64, err error)

Do executes Emulation.getOverriddenSensorInformation against the provided context.

returns:

requestedSamplingFrequency

func (GetOverriddenSensorInformationParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOverriddenSensorInformationParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetOverriddenSensorInformationParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOverriddenSensorInformationParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetOverriddenSensorInformationReturns

type GetOverriddenSensorInformationReturns struct {
	RequestedSamplingFrequency float64 `json:"requestedSamplingFrequency,omitempty"`
}

GetOverriddenSensorInformationReturns return values.

func (GetOverriddenSensorInformationReturns) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOverriddenSensorInformationReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetOverriddenSensorInformationReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOverriddenSensorInformationReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type MediaFeature

type MediaFeature struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

MediaFeature [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-MediaFeature

func (MediaFeature) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (MediaFeature) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*MediaFeature) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MediaFeature) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type OrientationType

type OrientationType string

OrientationType orientation type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-ScreenOrientation

const (
	OrientationTypePortraitPrimary    OrientationType = "portraitPrimary"
	OrientationTypePortraitSecondary  OrientationType = "portraitSecondary"
	OrientationTypeLandscapePrimary   OrientationType = "landscapePrimary"
	OrientationTypeLandscapeSecondary OrientationType = "landscapeSecondary"
)

OrientationType values.

func (OrientationType) MarshalEasyJSON

func (t OrientationType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (OrientationType) MarshalJSON

func (t OrientationType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (OrientationType) String

func (t OrientationType) String() string

String returns the OrientationType as string value.

func (*OrientationType) UnmarshalEasyJSON

func (t *OrientationType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*OrientationType) UnmarshalJSON

func (t *OrientationType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type PressureMetadata

type PressureMetadata struct {
	Available bool `json:"available,omitempty"`
}

PressureMetadata [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-PressureMetadata

func (PressureMetadata) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PressureMetadata) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PressureMetadata) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PressureMetadata) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type PressureSource

type PressureSource string

PressureSource [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-PressureSource

const (
	PressureSourceCPU PressureSource = "cpu"
)

PressureSource values.

func (PressureSource) MarshalEasyJSON

func (t PressureSource) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PressureSource) MarshalJSON

func (t PressureSource) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PressureSource) String

func (t PressureSource) String() string

String returns the PressureSource as string value.

func (*PressureSource) UnmarshalEasyJSON

func (t *PressureSource) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PressureSource) UnmarshalJSON

func (t *PressureSource) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type PressureState

type PressureState string

PressureState [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-PressureState

const (
	PressureStateNominal  PressureState = "nominal"
	PressureStateFair     PressureState = "fair"
	PressureStateSerious  PressureState = "serious"
	PressureStateCritical PressureState = "critical"
)

PressureState values.

func (PressureState) MarshalEasyJSON

func (t PressureState) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PressureState) MarshalJSON

func (t PressureState) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PressureState) String

func (t PressureState) String() string

String returns the PressureState as string value.

func (*PressureState) UnmarshalEasyJSON

func (t *PressureState) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PressureState) UnmarshalJSON

func (t *PressureState) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ResetPageScaleFactorParams

type ResetPageScaleFactorParams struct{}

ResetPageScaleFactorParams requests that page scale factor is reset to initial values.

func ResetPageScaleFactor

func ResetPageScaleFactor() *ResetPageScaleFactorParams

ResetPageScaleFactor requests that page scale factor is reset to initial values.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-resetPageScaleFactor

func (*ResetPageScaleFactorParams) Do

Do executes Emulation.resetPageScaleFactor against the provided context.

func (ResetPageScaleFactorParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResetPageScaleFactorParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ResetPageScaleFactorParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResetPageScaleFactorParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ScreenOrientation

type ScreenOrientation struct {
	Type  OrientationType `json:"type"`  // Orientation type.
	Angle int64           `json:"angle"` // Orientation angle.
}

ScreenOrientation screen orientation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-ScreenOrientation

func (ScreenOrientation) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScreenOrientation) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ScreenOrientation) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScreenOrientation) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SensorMetadata

type SensorMetadata struct {
	Available        bool    `json:"available,omitempty"`
	MinimumFrequency float64 `json:"minimumFrequency,omitempty"`
	MaximumFrequency float64 `json:"maximumFrequency,omitempty"`
}

SensorMetadata [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-SensorMetadata

func (SensorMetadata) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SensorMetadata) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SensorMetadata) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SensorMetadata) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SensorReading

type SensorReading struct {
	Single     *SensorReadingSingle     `json:"single,omitempty"`
	Xyz        *SensorReadingXYZ        `json:"xyz,omitempty"`
	Quaternion *SensorReadingQuaternion `json:"quaternion,omitempty"`
}

SensorReading [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-SensorReading

func (SensorReading) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SensorReading) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SensorReading) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SensorReading) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SensorReadingQuaternion

type SensorReadingQuaternion struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
	W float64 `json:"w"`
}

SensorReadingQuaternion [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-SensorReadingQuaternion

func (SensorReadingQuaternion) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SensorReadingQuaternion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SensorReadingQuaternion) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SensorReadingQuaternion) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SensorReadingSingle

type SensorReadingSingle struct {
	Value float64 `json:"value"`
}

SensorReadingSingle [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-SensorReadingSingle

func (SensorReadingSingle) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SensorReadingSingle) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SensorReadingSingle) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SensorReadingSingle) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SensorReadingXYZ

type SensorReadingXYZ struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

SensorReadingXYZ [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-SensorReadingXYZ

func (SensorReadingXYZ) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SensorReadingXYZ) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SensorReadingXYZ) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SensorReadingXYZ) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SensorType

type SensorType string

SensorType used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-SensorType

const (
	SensorTypeAbsoluteOrientation SensorType = "absolute-orientation"
	SensorTypeAccelerometer       SensorType = "accelerometer"
	SensorTypeAmbientLight        SensorType = "ambient-light"
	SensorTypeGravity             SensorType = "gravity"
	SensorTypeGyroscope           SensorType = "gyroscope"
	SensorTypeLinearAcceleration  SensorType = "linear-acceleration"
	SensorTypeMagnetometer        SensorType = "magnetometer"
	SensorTypeRelativeOrientation SensorType = "relative-orientation"
)

SensorType values.

func (SensorType) MarshalEasyJSON

func (t SensorType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SensorType) MarshalJSON

func (t SensorType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SensorType) String

func (t SensorType) String() string

String returns the SensorType as string value.

func (*SensorType) UnmarshalEasyJSON

func (t *SensorType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SensorType) UnmarshalJSON

func (t *SensorType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SetAutoDarkModeOverrideParams

type SetAutoDarkModeOverrideParams struct {
	Enabled bool `json:"enabled,omitempty"` // Whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.
}

SetAutoDarkModeOverrideParams automatically render all web contents using a dark theme.

func SetAutoDarkModeOverride

func SetAutoDarkModeOverride() *SetAutoDarkModeOverrideParams

SetAutoDarkModeOverride automatically render all web contents using a dark theme.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setAutoDarkModeOverride

parameters:

func (*SetAutoDarkModeOverrideParams) Do

Do executes Emulation.setAutoDarkModeOverride against the provided context.

func (SetAutoDarkModeOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAutoDarkModeOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetAutoDarkModeOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAutoDarkModeOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetAutoDarkModeOverrideParams) WithEnabled

WithEnabled whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.

type SetAutomationOverrideParams

type SetAutomationOverrideParams struct {
	Enabled bool `json:"enabled"` // Whether the override should be enabled.
}

SetAutomationOverrideParams allows overriding the automation flag.

func SetAutomationOverride

func SetAutomationOverride(enabled bool) *SetAutomationOverrideParams

SetAutomationOverride allows overriding the automation flag.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setAutomationOverride

parameters:

enabled - Whether the override should be enabled.

func (*SetAutomationOverrideParams) Do

Do executes Emulation.setAutomationOverride against the provided context.

func (SetAutomationOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAutomationOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetAutomationOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAutomationOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetCPUThrottlingRateParams

type SetCPUThrottlingRateParams struct {
	Rate float64 `json:"rate"` // Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
}

SetCPUThrottlingRateParams enables CPU throttling to emulate slow CPUs.

func SetCPUThrottlingRate

func SetCPUThrottlingRate(rate float64) *SetCPUThrottlingRateParams

SetCPUThrottlingRate enables CPU throttling to emulate slow CPUs.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setCPUThrottlingRate

parameters:

rate - Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).

func (*SetCPUThrottlingRateParams) Do

Do executes Emulation.setCPUThrottlingRate against the provided context.

func (SetCPUThrottlingRateParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCPUThrottlingRateParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetCPUThrottlingRateParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCPUThrottlingRateParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDefaultBackgroundColorOverrideParams

type SetDefaultBackgroundColorOverrideParams struct {
	Color *cdp.RGBA `json:"color,omitempty"` // RGBA of the default background color. If not specified, any existing override will be cleared.
}

SetDefaultBackgroundColorOverrideParams sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.

func SetDefaultBackgroundColorOverride

func SetDefaultBackgroundColorOverride() *SetDefaultBackgroundColorOverrideParams

SetDefaultBackgroundColorOverride sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDefaultBackgroundColorOverride

parameters:

func (*SetDefaultBackgroundColorOverrideParams) Do

Do executes Emulation.setDefaultBackgroundColorOverride against the provided context.

func (SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDefaultBackgroundColorOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDefaultBackgroundColorOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetDefaultBackgroundColorOverrideParams) WithColor

WithColor rGBA of the default background color. If not specified, any existing override will be cleared.

type SetDeviceMetricsOverrideParams

type SetDeviceMetricsOverrideParams struct {
	Width              int64              `json:"width"`                        // Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
	Height             int64              `json:"height"`                       // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
	DeviceScaleFactor  float64            `json:"deviceScaleFactor"`            // Overriding device scale factor value. 0 disables the override.
	Mobile             bool               `json:"mobile"`                       // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
	Scale              float64            `json:"scale,omitempty"`              // Scale to apply to resulting view image.
	ScreenWidth        int64              `json:"screenWidth,omitempty"`        // Overriding screen width value in pixels (minimum 0, maximum 10000000).
	ScreenHeight       int64              `json:"screenHeight,omitempty"`       // Overriding screen height value in pixels (minimum 0, maximum 10000000).
	PositionX          int64              `json:"positionX,omitempty"`          // Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
	PositionY          int64              `json:"positionY,omitempty"`          // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
	DontSetVisibleSize bool               `json:"dontSetVisibleSize,omitempty"` // Do not set visible view size, rely upon explicit setVisibleSize call.
	ScreenOrientation  *ScreenOrientation `json:"screenOrientation,omitempty"`  // Screen orientation override.
	Viewport           *page.Viewport     `json:"viewport,omitempty"`           // If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.
	DisplayFeature     *DisplayFeature    `json:"displayFeature,omitempty"`     // If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.
}

SetDeviceMetricsOverrideParams overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).

func SetDeviceMetricsOverride

func SetDeviceMetricsOverride(width int64, height int64, deviceScaleFactor float64, mobile bool) *SetDeviceMetricsOverrideParams

SetDeviceMetricsOverride overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDeviceMetricsOverride

parameters:

width - Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
height - Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
deviceScaleFactor - Overriding device scale factor value. 0 disables the override.
mobile - Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.

func (*SetDeviceMetricsOverrideParams) Do

Do executes Emulation.setDeviceMetricsOverride against the provided context.

func (SetDeviceMetricsOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDeviceMetricsOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetDeviceMetricsOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDeviceMetricsOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetDeviceMetricsOverrideParams) WithDisplayFeature

func (p SetDeviceMetricsOverrideParams) WithDisplayFeature(displayFeature *DisplayFeature) *SetDeviceMetricsOverrideParams

WithDisplayFeature if set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.

func (SetDeviceMetricsOverrideParams) WithDontSetVisibleSize

func (p SetDeviceMetricsOverrideParams) WithDontSetVisibleSize(dontSetVisibleSize bool) *SetDeviceMetricsOverrideParams

WithDontSetVisibleSize do not set visible view size, rely upon explicit setVisibleSize call.

func (SetDeviceMetricsOverrideParams) WithPositionX

WithPositionX overriding view X position on screen in pixels (minimum 0, maximum 10000000).

func (SetDeviceMetricsOverrideParams) WithPositionY

WithPositionY overriding view Y position on screen in pixels (minimum 0, maximum 10000000).

func (SetDeviceMetricsOverrideParams) WithScale

WithScale scale to apply to resulting view image.

func (SetDeviceMetricsOverrideParams) WithScreenHeight

func (p SetDeviceMetricsOverrideParams) WithScreenHeight(screenHeight int64) *SetDeviceMetricsOverrideParams

WithScreenHeight overriding screen height value in pixels (minimum 0, maximum 10000000).

func (SetDeviceMetricsOverrideParams) WithScreenOrientation

func (p SetDeviceMetricsOverrideParams) WithScreenOrientation(screenOrientation *ScreenOrientation) *SetDeviceMetricsOverrideParams

WithScreenOrientation screen orientation override.

func (SetDeviceMetricsOverrideParams) WithScreenWidth

WithScreenWidth overriding screen width value in pixels (minimum 0, maximum 10000000).

func (SetDeviceMetricsOverrideParams) WithViewport

WithViewport if set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.

type SetDevicePostureOverrideParams

type SetDevicePostureOverrideParams struct {
	Posture *DevicePosture `json:"posture"`
}

SetDevicePostureOverrideParams start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().

func SetDevicePostureOverride

func SetDevicePostureOverride(posture *DevicePosture) *SetDevicePostureOverrideParams

SetDevicePostureOverride start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDevicePostureOverride

parameters:

posture

func (*SetDevicePostureOverrideParams) Do

Do executes Emulation.setDevicePostureOverride against the provided context.

func (SetDevicePostureOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDevicePostureOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetDevicePostureOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDevicePostureOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDisabledImageTypesParams

type SetDisabledImageTypesParams struct {
	ImageTypes []DisabledImageType `json:"imageTypes"` // Image types to disable.
}

SetDisabledImageTypesParams [no description].

func SetDisabledImageTypes

func SetDisabledImageTypes(imageTypes []DisabledImageType) *SetDisabledImageTypesParams

SetDisabledImageTypes [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDisabledImageTypes

parameters:

imageTypes - Image types to disable.

func (*SetDisabledImageTypesParams) Do

Do executes Emulation.setDisabledImageTypes against the provided context.

func (SetDisabledImageTypesParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDisabledImageTypesParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetDisabledImageTypesParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDisabledImageTypesParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDocumentCookieDisabledParams

type SetDocumentCookieDisabledParams struct {
	Disabled bool `json:"disabled"` // Whether document.coookie API should be disabled.
}

SetDocumentCookieDisabledParams [no description].

func SetDocumentCookieDisabled

func SetDocumentCookieDisabled(disabled bool) *SetDocumentCookieDisabledParams

SetDocumentCookieDisabled [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDocumentCookieDisabled

parameters:

disabled - Whether document.coookie API should be disabled.

func (*SetDocumentCookieDisabledParams) Do

Do executes Emulation.setDocumentCookieDisabled against the provided context.

func (SetDocumentCookieDisabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDocumentCookieDisabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetDocumentCookieDisabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDocumentCookieDisabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetEmitTouchEventsForMouseConfiguration

type SetEmitTouchEventsForMouseConfiguration string

SetEmitTouchEventsForMouseConfiguration touch/gesture events configuration. Default: current platform.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmitTouchEventsForMouse

const (
	SetEmitTouchEventsForMouseConfigurationMobile  SetEmitTouchEventsForMouseConfiguration = "mobile"
	SetEmitTouchEventsForMouseConfigurationDesktop SetEmitTouchEventsForMouseConfiguration = "desktop"
)

SetEmitTouchEventsForMouseConfiguration values.

func (SetEmitTouchEventsForMouseConfiguration) MarshalEasyJSON

func (t SetEmitTouchEventsForMouseConfiguration) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetEmitTouchEventsForMouseConfiguration) MarshalJSON

func (t SetEmitTouchEventsForMouseConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SetEmitTouchEventsForMouseConfiguration) String

String returns the SetEmitTouchEventsForMouseConfiguration as string value.

func (*SetEmitTouchEventsForMouseConfiguration) UnmarshalEasyJSON

func (t *SetEmitTouchEventsForMouseConfiguration) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetEmitTouchEventsForMouseConfiguration) UnmarshalJSON

func (t *SetEmitTouchEventsForMouseConfiguration) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SetEmitTouchEventsForMouseParams

type SetEmitTouchEventsForMouseParams struct {
	Enabled       bool                                    `json:"enabled"`                 // Whether touch emulation based on mouse input should be enabled.
	Configuration SetEmitTouchEventsForMouseConfiguration `json:"configuration,omitempty"` // Touch/gesture events configuration. Default: current platform.
}

SetEmitTouchEventsForMouseParams [no description].

func SetEmitTouchEventsForMouse

func SetEmitTouchEventsForMouse(enabled bool) *SetEmitTouchEventsForMouseParams

SetEmitTouchEventsForMouse [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmitTouchEventsForMouse

parameters:

enabled - Whether touch emulation based on mouse input should be enabled.

func (*SetEmitTouchEventsForMouseParams) Do

Do executes Emulation.setEmitTouchEventsForMouse against the provided context.

func (SetEmitTouchEventsForMouseParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetEmitTouchEventsForMouseParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetEmitTouchEventsForMouseParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetEmitTouchEventsForMouseParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetEmitTouchEventsForMouseParams) WithConfiguration

WithConfiguration touch/gesture events configuration. Default: current platform.

type SetEmulatedMediaParams

type SetEmulatedMediaParams struct {
	Media    string          `json:"media,omitempty"`    // Media type to emulate. Empty string disables the override.
	Features []*MediaFeature `json:"features,omitempty"` // Media features to emulate.
}

SetEmulatedMediaParams emulates the given media type or media feature for CSS media queries.

func SetEmulatedMedia

func SetEmulatedMedia() *SetEmulatedMediaParams

SetEmulatedMedia emulates the given media type or media feature for CSS media queries.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmulatedMedia

parameters:

func (*SetEmulatedMediaParams) Do

func (p *SetEmulatedMediaParams) Do(ctx context.Context) (err error)

Do executes Emulation.setEmulatedMedia against the provided context.

func (SetEmulatedMediaParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetEmulatedMediaParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetEmulatedMediaParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetEmulatedMediaParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetEmulatedMediaParams) WithFeatures

func (p SetEmulatedMediaParams) WithFeatures(features []*MediaFeature) *SetEmulatedMediaParams

WithFeatures media features to emulate.

func (SetEmulatedMediaParams) WithMedia

WithMedia media type to emulate. Empty string disables the override.

type SetEmulatedVisionDeficiencyParams

type SetEmulatedVisionDeficiencyParams struct {
	Type SetEmulatedVisionDeficiencyType `json:"type"` // Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.
}

SetEmulatedVisionDeficiencyParams emulates the given vision deficiency.

func SetEmulatedVisionDeficiency

func SetEmulatedVisionDeficiency(typeVal SetEmulatedVisionDeficiencyType) *SetEmulatedVisionDeficiencyParams

SetEmulatedVisionDeficiency emulates the given vision deficiency.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmulatedVisionDeficiency

parameters:

type - Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.

func (*SetEmulatedVisionDeficiencyParams) Do

Do executes Emulation.setEmulatedVisionDeficiency against the provided context.

func (SetEmulatedVisionDeficiencyParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetEmulatedVisionDeficiencyParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetEmulatedVisionDeficiencyParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetEmulatedVisionDeficiencyParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetEmulatedVisionDeficiencyType

type SetEmulatedVisionDeficiencyType string

SetEmulatedVisionDeficiencyType vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmulatedVisionDeficiency

const (
	SetEmulatedVisionDeficiencyTypeNone            SetEmulatedVisionDeficiencyType = "none"
	SetEmulatedVisionDeficiencyTypeBlurredVision   SetEmulatedVisionDeficiencyType = "blurredVision"
	SetEmulatedVisionDeficiencyTypeReducedContrast SetEmulatedVisionDeficiencyType = "reducedContrast"
	SetEmulatedVisionDeficiencyTypeAchromatopsia   SetEmulatedVisionDeficiencyType = "achromatopsia"
	SetEmulatedVisionDeficiencyTypeDeuteranopia    SetEmulatedVisionDeficiencyType = "deuteranopia"
	SetEmulatedVisionDeficiencyTypeProtanopia      SetEmulatedVisionDeficiencyType = "protanopia"
	SetEmulatedVisionDeficiencyTypeTritanopia      SetEmulatedVisionDeficiencyType = "tritanopia"
)

SetEmulatedVisionDeficiencyType values.

func (SetEmulatedVisionDeficiencyType) MarshalEasyJSON

func (t SetEmulatedVisionDeficiencyType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetEmulatedVisionDeficiencyType) MarshalJSON

func (t SetEmulatedVisionDeficiencyType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SetEmulatedVisionDeficiencyType) String

String returns the SetEmulatedVisionDeficiencyType as string value.

func (*SetEmulatedVisionDeficiencyType) UnmarshalEasyJSON

func (t *SetEmulatedVisionDeficiencyType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetEmulatedVisionDeficiencyType) UnmarshalJSON

func (t *SetEmulatedVisionDeficiencyType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SetFocusEmulationEnabledParams

type SetFocusEmulationEnabledParams struct {
	Enabled bool `json:"enabled"` // Whether to enable to disable focus emulation.
}

SetFocusEmulationEnabledParams enables or disables simulating a focused and active page.

func SetFocusEmulationEnabled

func SetFocusEmulationEnabled(enabled bool) *SetFocusEmulationEnabledParams

SetFocusEmulationEnabled enables or disables simulating a focused and active page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setFocusEmulationEnabled

parameters:

enabled - Whether to enable to disable focus emulation.

func (*SetFocusEmulationEnabledParams) Do

Do executes Emulation.setFocusEmulationEnabled against the provided context.

func (SetFocusEmulationEnabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetFocusEmulationEnabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetFocusEmulationEnabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetFocusEmulationEnabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetGeolocationOverrideParams

type SetGeolocationOverrideParams struct {
	Latitude  float64 `json:"latitude,omitempty"`  // Mock latitude
	Longitude float64 `json:"longitude,omitempty"` // Mock longitude
	Accuracy  float64 `json:"accuracy,omitempty"`  // Mock accuracy
}

SetGeolocationOverrideParams overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

func SetGeolocationOverride

func SetGeolocationOverride() *SetGeolocationOverrideParams

SetGeolocationOverride overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setGeolocationOverride

parameters:

func (*SetGeolocationOverrideParams) Do

Do executes Emulation.setGeolocationOverride against the provided context.

func (SetGeolocationOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetGeolocationOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetGeolocationOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetGeolocationOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetGeolocationOverrideParams) WithAccuracy

WithAccuracy mock accuracy.

func (SetGeolocationOverrideParams) WithLatitude

WithLatitude mock latitude.

func (SetGeolocationOverrideParams) WithLongitude

WithLongitude mock longitude.

type SetHardwareConcurrencyOverrideParams

type SetHardwareConcurrencyOverrideParams struct {
	HardwareConcurrency int64 `json:"hardwareConcurrency"` // Hardware concurrency to report
}

SetHardwareConcurrencyOverrideParams [no description].

func SetHardwareConcurrencyOverride

func SetHardwareConcurrencyOverride(hardwareConcurrency int64) *SetHardwareConcurrencyOverrideParams

SetHardwareConcurrencyOverride [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setHardwareConcurrencyOverride

parameters:

hardwareConcurrency - Hardware concurrency to report

func (*SetHardwareConcurrencyOverrideParams) Do

Do executes Emulation.setHardwareConcurrencyOverride against the provided context.

func (SetHardwareConcurrencyOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetHardwareConcurrencyOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetHardwareConcurrencyOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetHardwareConcurrencyOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetIdleOverrideParams

type SetIdleOverrideParams struct {
	IsUserActive     bool `json:"isUserActive"`     // Mock isUserActive
	IsScreenUnlocked bool `json:"isScreenUnlocked"` // Mock isScreenUnlocked
}

SetIdleOverrideParams overrides the Idle state.

func SetIdleOverride

func SetIdleOverride(isUserActive bool, isScreenUnlocked bool) *SetIdleOverrideParams

SetIdleOverride overrides the Idle state.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setIdleOverride

parameters:

isUserActive - Mock isUserActive
isScreenUnlocked - Mock isScreenUnlocked

func (*SetIdleOverrideParams) Do

func (p *SetIdleOverrideParams) Do(ctx context.Context) (err error)

Do executes Emulation.setIdleOverride against the provided context.

func (SetIdleOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetIdleOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetIdleOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetIdleOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetLocaleOverrideParams

type SetLocaleOverrideParams struct {
	Locale string `json:"locale,omitempty"` // ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale.
}

SetLocaleOverrideParams overrides default host system locale with the specified one.

func SetLocaleOverride

func SetLocaleOverride() *SetLocaleOverrideParams

SetLocaleOverride overrides default host system locale with the specified one.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setLocaleOverride

parameters:

func (*SetLocaleOverrideParams) Do

func (p *SetLocaleOverrideParams) Do(ctx context.Context) (err error)

Do executes Emulation.setLocaleOverride against the provided context.

func (SetLocaleOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetLocaleOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetLocaleOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetLocaleOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetLocaleOverrideParams) WithLocale

WithLocale iCU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale.

type SetPageScaleFactorParams

type SetPageScaleFactorParams struct {
	PageScaleFactor float64 `json:"pageScaleFactor"` // Page scale factor.
}

SetPageScaleFactorParams sets a specified page scale factor.

func SetPageScaleFactor

func SetPageScaleFactor(pageScaleFactor float64) *SetPageScaleFactorParams

SetPageScaleFactor sets a specified page scale factor.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setPageScaleFactor

parameters:

pageScaleFactor - Page scale factor.

func (*SetPageScaleFactorParams) Do

func (p *SetPageScaleFactorParams) Do(ctx context.Context) (err error)

Do executes Emulation.setPageScaleFactor against the provided context.

func (SetPageScaleFactorParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPageScaleFactorParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetPageScaleFactorParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPageScaleFactorParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetPressureSourceOverrideEnabledParams

type SetPressureSourceOverrideEnabledParams struct {
	Enabled  bool              `json:"enabled"`
	Source   PressureSource    `json:"source"`
	Metadata *PressureMetadata `json:"metadata,omitempty"`
}

SetPressureSourceOverrideEnabledParams overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data.

func SetPressureSourceOverrideEnabled

func SetPressureSourceOverrideEnabled(enabled bool, source PressureSource) *SetPressureSourceOverrideEnabledParams

SetPressureSourceOverrideEnabled overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setPressureSourceOverrideEnabled

parameters:

enabled
source

func (*SetPressureSourceOverrideEnabledParams) Do

Do executes Emulation.setPressureSourceOverrideEnabled against the provided context.

func (SetPressureSourceOverrideEnabledParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPressureSourceOverrideEnabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetPressureSourceOverrideEnabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPressureSourceOverrideEnabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetPressureSourceOverrideEnabledParams) WithMetadata

WithMetadata [no description].

type SetPressureStateOverrideParams

type SetPressureStateOverrideParams struct {
	Source PressureSource `json:"source"`
	State  PressureState  `json:"state"`
}

SetPressureStateOverrideParams provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled.

func SetPressureStateOverride

func SetPressureStateOverride(source PressureSource, state PressureState) *SetPressureStateOverrideParams

SetPressureStateOverride provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setPressureStateOverride

parameters:

source
state

func (*SetPressureStateOverrideParams) Do

Do executes Emulation.setPressureStateOverride against the provided context.

func (SetPressureStateOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPressureStateOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetPressureStateOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPressureStateOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetScriptExecutionDisabledParams

type SetScriptExecutionDisabledParams struct {
	Value bool `json:"value"` // Whether script execution should be disabled in the page.
}

SetScriptExecutionDisabledParams switches script execution in the page.

func SetScriptExecutionDisabled

func SetScriptExecutionDisabled(value bool) *SetScriptExecutionDisabledParams

SetScriptExecutionDisabled switches script execution in the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setScriptExecutionDisabled

parameters:

value - Whether script execution should be disabled in the page.

func (*SetScriptExecutionDisabledParams) Do

Do executes Emulation.setScriptExecutionDisabled against the provided context.

func (SetScriptExecutionDisabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetScriptExecutionDisabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetScriptExecutionDisabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetScriptExecutionDisabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetScrollbarsHiddenParams

type SetScrollbarsHiddenParams struct {
	Hidden bool `json:"hidden"` // Whether scrollbars should be always hidden.
}

SetScrollbarsHiddenParams [no description].

func SetScrollbarsHidden

func SetScrollbarsHidden(hidden bool) *SetScrollbarsHiddenParams

SetScrollbarsHidden [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setScrollbarsHidden

parameters:

hidden - Whether scrollbars should be always hidden.

func (*SetScrollbarsHiddenParams) Do

Do executes Emulation.setScrollbarsHidden against the provided context.

func (SetScrollbarsHiddenParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetScrollbarsHiddenParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetScrollbarsHiddenParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetScrollbarsHiddenParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetSensorOverrideEnabledParams

type SetSensorOverrideEnabledParams struct {
	Enabled  bool            `json:"enabled"`
	Type     SensorType      `json:"type"`
	Metadata *SensorMetadata `json:"metadata,omitempty"`
}

SetSensorOverrideEnabledParams overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.

func SetSensorOverrideEnabled

func SetSensorOverrideEnabled(enabled bool, typeVal SensorType) *SetSensorOverrideEnabledParams

SetSensorOverrideEnabled overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setSensorOverrideEnabled

parameters:

enabled
type

func (*SetSensorOverrideEnabledParams) Do

Do executes Emulation.setSensorOverrideEnabled against the provided context.

func (SetSensorOverrideEnabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetSensorOverrideEnabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetSensorOverrideEnabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetSensorOverrideEnabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetSensorOverrideEnabledParams) WithMetadata

WithMetadata [no description].

type SetSensorOverrideReadingsParams

type SetSensorOverrideReadingsParams struct {
	Type    SensorType     `json:"type"`
	Reading *SensorReading `json:"reading"`
}

SetSensorOverrideReadingsParams updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.

func SetSensorOverrideReadings

func SetSensorOverrideReadings(typeVal SensorType, reading *SensorReading) *SetSensorOverrideReadingsParams

SetSensorOverrideReadings updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setSensorOverrideReadings

parameters:

type
reading

func (*SetSensorOverrideReadingsParams) Do

Do executes Emulation.setSensorOverrideReadings against the provided context.

func (SetSensorOverrideReadingsParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetSensorOverrideReadingsParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetSensorOverrideReadingsParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetSensorOverrideReadingsParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetTimezoneOverrideParams

type SetTimezoneOverrideParams struct {
	TimezoneID string `json:"timezoneId"` // The timezone identifier. List of supported timezones: https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt If empty, disables the override and restores default host system timezone.
}

SetTimezoneOverrideParams overrides default host system timezone with the specified one.

func SetTimezoneOverride

func SetTimezoneOverride(timezoneID string) *SetTimezoneOverrideParams

SetTimezoneOverride overrides default host system timezone with the specified one.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setTimezoneOverride

parameters:

timezoneID - The timezone identifier. List of supported timezones: https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt If empty, disables the override and restores default host system timezone.

func (*SetTimezoneOverrideParams) Do

Do executes Emulation.setTimezoneOverride against the provided context.

func (SetTimezoneOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetTimezoneOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetTimezoneOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetTimezoneOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetTouchEmulationEnabledParams

type SetTouchEmulationEnabledParams struct {
	Enabled        bool  `json:"enabled"`                  // Whether the touch event emulation should be enabled.
	MaxTouchPoints int64 `json:"maxTouchPoints,omitempty"` // Maximum touch points supported. Defaults to one.
}

SetTouchEmulationEnabledParams enables touch on platforms which do not support them.

func SetTouchEmulationEnabled

func SetTouchEmulationEnabled(enabled bool) *SetTouchEmulationEnabledParams

SetTouchEmulationEnabled enables touch on platforms which do not support them.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setTouchEmulationEnabled

parameters:

enabled - Whether the touch event emulation should be enabled.

func (*SetTouchEmulationEnabledParams) Do

Do executes Emulation.setTouchEmulationEnabled against the provided context.

func (SetTouchEmulationEnabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetTouchEmulationEnabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetTouchEmulationEnabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetTouchEmulationEnabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetTouchEmulationEnabledParams) WithMaxTouchPoints

func (p SetTouchEmulationEnabledParams) WithMaxTouchPoints(maxTouchPoints int64) *SetTouchEmulationEnabledParams

WithMaxTouchPoints maximum touch points supported. Defaults to one.

type SetUserAgentOverrideParams

type SetUserAgentOverrideParams struct {
	UserAgent         string             `json:"userAgent"`                   // User agent to use.
	AcceptLanguage    string             `json:"acceptLanguage,omitempty"`    // Browser language to emulate.
	Platform          string             `json:"platform,omitempty"`          // The platform navigator.platform should return.
	UserAgentMetadata *UserAgentMetadata `json:"userAgentMetadata,omitempty"` // To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
}

SetUserAgentOverrideParams allows overriding user agent with the given string. userAgentMetadata must be set for Client Hint headers to be sent.

func SetUserAgentOverride

func SetUserAgentOverride(userAgent string) *SetUserAgentOverrideParams

SetUserAgentOverride allows overriding user agent with the given string. userAgentMetadata must be set for Client Hint headers to be sent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setUserAgentOverride

parameters:

userAgent - User agent to use.

func (*SetUserAgentOverrideParams) Do

Do executes Emulation.setUserAgentOverride against the provided context.

func (SetUserAgentOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetUserAgentOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetUserAgentOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetUserAgentOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetUserAgentOverrideParams) WithAcceptLanguage

func (p SetUserAgentOverrideParams) WithAcceptLanguage(acceptLanguage string) *SetUserAgentOverrideParams

WithAcceptLanguage browser language to emulate.

func (SetUserAgentOverrideParams) WithPlatform

WithPlatform the platform navigator.platform should return.

func (SetUserAgentOverrideParams) WithUserAgentMetadata

func (p SetUserAgentOverrideParams) WithUserAgentMetadata(userAgentMetadata *UserAgentMetadata) *SetUserAgentOverrideParams

WithUserAgentMetadata to be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData.

type SetVirtualTimePolicyParams

type SetVirtualTimePolicyParams struct {
	Policy                            VirtualTimePolicy   `json:"policy"`
	Budget                            float64             `json:"budget,omitempty"`                            // If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.
	MaxVirtualTimeTaskStarvationCount int64               `json:"maxVirtualTimeTaskStarvationCount,omitempty"` // If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.
	InitialVirtualTime                *cdp.TimeSinceEpoch `json:"initialVirtualTime,omitempty"`                // If set, base::Time::Now will be overridden to initially return this value.
}

SetVirtualTimePolicyParams turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.

func SetVirtualTimePolicy

func SetVirtualTimePolicy(policy VirtualTimePolicy) *SetVirtualTimePolicyParams

SetVirtualTimePolicy turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setVirtualTimePolicy

parameters:

policy

func (*SetVirtualTimePolicyParams) Do

func (p *SetVirtualTimePolicyParams) Do(ctx context.Context) (virtualTimeTicksBase float64, err error)

Do executes Emulation.setVirtualTimePolicy against the provided context.

returns:

virtualTimeTicksBase - Absolute timestamp at which virtual time was first enabled (up time in milliseconds).

func (SetVirtualTimePolicyParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetVirtualTimePolicyParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetVirtualTimePolicyParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetVirtualTimePolicyParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetVirtualTimePolicyParams) WithBudget

WithBudget if set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.

func (SetVirtualTimePolicyParams) WithInitialVirtualTime

func (p SetVirtualTimePolicyParams) WithInitialVirtualTime(initialVirtualTime *cdp.TimeSinceEpoch) *SetVirtualTimePolicyParams

WithInitialVirtualTime if set, base::Time::Now will be overridden to initially return this value.

func (SetVirtualTimePolicyParams) WithMaxVirtualTimeTaskStarvationCount

func (p SetVirtualTimePolicyParams) WithMaxVirtualTimeTaskStarvationCount(maxVirtualTimeTaskStarvationCount int64) *SetVirtualTimePolicyParams

WithMaxVirtualTimeTaskStarvationCount if set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.

type SetVirtualTimePolicyReturns

type SetVirtualTimePolicyReturns struct {
	VirtualTimeTicksBase float64 `json:"virtualTimeTicksBase,omitempty"` // Absolute timestamp at which virtual time was first enabled (up time in milliseconds).
}

SetVirtualTimePolicyReturns return values.

func (SetVirtualTimePolicyReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetVirtualTimePolicyReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetVirtualTimePolicyReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetVirtualTimePolicyReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type UserAgentBrandVersion

type UserAgentBrandVersion struct {
	Brand   string `json:"brand"`
	Version string `json:"version"`
}

UserAgentBrandVersion used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-UserAgentBrandVersion

func (UserAgentBrandVersion) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserAgentBrandVersion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*UserAgentBrandVersion) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserAgentBrandVersion) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type UserAgentMetadata

type UserAgentMetadata struct {
	Brands          []*UserAgentBrandVersion `json:"brands,omitempty"`          // Brands appearing in Sec-CH-UA.
	FullVersionList []*UserAgentBrandVersion `json:"fullVersionList,omitempty"` // Brands appearing in Sec-CH-UA-Full-Version-List.
	Platform        string                   `json:"platform"`
	PlatformVersion string                   `json:"platformVersion"`
	Architecture    string                   `json:"architecture"`
	Model           string                   `json:"model"`
	Mobile          bool                     `json:"mobile"`
	Bitness         string                   `json:"bitness,omitempty"`
	Wow64           bool                     `json:"wow64,omitempty"`
}

UserAgentMetadata used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-UserAgentMetadata

func (UserAgentMetadata) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserAgentMetadata) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*UserAgentMetadata) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserAgentMetadata) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type VirtualTimePolicy

type VirtualTimePolicy string

VirtualTimePolicy advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.

See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-VirtualTimePolicy

const (
	VirtualTimePolicyAdvance                      VirtualTimePolicy = "advance"
	VirtualTimePolicyPause                        VirtualTimePolicy = "pause"
	VirtualTimePolicyPauseIfNetworkFetchesPending VirtualTimePolicy = "pauseIfNetworkFetchesPending"
)

VirtualTimePolicy values.

func (VirtualTimePolicy) MarshalEasyJSON

func (t VirtualTimePolicy) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (VirtualTimePolicy) MarshalJSON

func (t VirtualTimePolicy) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (VirtualTimePolicy) String

func (t VirtualTimePolicy) String() string

String returns the VirtualTimePolicy as string value.

func (*VirtualTimePolicy) UnmarshalEasyJSON

func (t *VirtualTimePolicy) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*VirtualTimePolicy) UnmarshalJSON

func (t *VirtualTimePolicy) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Jump to

Keyboard shortcuts

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