Documentation
¶
Overview ¶
Package cdptype defines the types within each CDP domain.
Index ¶
- type AccessibilityAXGlobalStates
- type AccessibilityAXLiveRegionAttributes
- type AccessibilityAXNode
- type AccessibilityAXNodeID
- type AccessibilityAXProperty
- type AccessibilityAXRelatedNode
- type AccessibilityAXRelationshipAttributes
- type AccessibilityAXValue
- type AccessibilityAXValueNativeSourceType
- type AccessibilityAXValueSource
- type AccessibilityAXValueSourceType
- type AccessibilityAXValueType
- type AccessibilityAXWidgetAttributes
- type AccessibilityAXWidgetStates
- type Animation
- type AnimationEffect
- type AnimationKeyframeStyle
- type AnimationKeyframesRule
- type ApplicationCache
- type ApplicationCacheFrameWithManifest
- type ApplicationCacheResource
- type BrowserBounds
- type BrowserWindowID
- type BrowserWindowState
- type CSSComputedStyleProperty
- type CSSInheritedStyleEntry
- type CSSInlineTextBox
- type CSSKeyframeRule
- type CSSKeyframesRule
- type CSSMedia
- type CSSMediaQuery
- type CSSMediaQueryExpression
- type CSSPlatformFontUsage
- type CSSProperty
- type CSSPseudoElementMatches
- type CSSRule
- type CSSRuleMatch
- type CSSRuleUsage
- type CSSSelectorList
- type CSSShorthandEntry
- type CSSSourceRange
- type CSSStyle
- type CSSStyleDeclarationEdit
- type CSSStyleSheetHeader
- type CSSStyleSheetID
- type CSSStyleSheetOrigin
- type CSSValue
- type CacheStorageCache
- type CacheStorageCacheID
- type CacheStorageDataEntry
- type ConsoleMessage
- type DOMBackendNode
- type DOMBackendNodeID
- type DOMBoxModel
- type DOMDebuggerDOMBreakpointType
- type DOMDebuggerEventListener
- type DOMNode
- type DOMNodeID
- type DOMPseudoType
- type DOMQuad
- type DOMRGBA
- type DOMRect
- type DOMShadowRootType
- type DOMShapeOutsideInfo
- type DOMSnapshotComputedStyle
- type DOMSnapshotDOMNode
- type DOMSnapshotLayoutTreeNode
- type DOMSnapshotNameValue
- type DOMStorageItem
- type DOMStorageStorageID
- type Database
- type DatabaseError
- type DatabaseID
- type DebuggerBreakLocation
- type DebuggerBreakpointID
- type DebuggerCallFrame
- type DebuggerCallFrameID
- type DebuggerLocation
- type DebuggerScope
- type DebuggerScriptPosition
- type DebuggerSearchMatch
- type EmulationScreenOrientation
- type EmulationVirtualTimePolicy
- type HeapProfilerHeapSnapshotObjectID
- type HeapProfilerSamplingHeapProfile
- type HeapProfilerSamplingHeapProfileNode
- type IOStreamHandle
- type IndexedDBDataEntry
- type IndexedDBDatabaseWithObjectStores
- type IndexedDBKey
- type IndexedDBKeyPath
- type IndexedDBKeyRange
- type IndexedDBObjectStore
- type IndexedDBObjectStoreIndex
- type InputGestureSourceType
- type InputTouchPoint
- type LayerTreeLayer
- type LayerTreeLayerID
- type LayerTreePaintProfile
- type LayerTreePictureTile
- type LayerTreeScrollRect
- type LayerTreeSnapshotID
- type LogEntry
- type LogViolationSetting
- type MemoryPressureLevel
- type NetworkAuthChallenge
- type NetworkAuthChallengeResponse
- type NetworkBlockedReason
- type NetworkCachedResource
- type NetworkConnectionType
- type NetworkCookie
- type NetworkCookieSameSite
- type NetworkErrorReason
- type NetworkHeaders
- type NetworkInitiator
- type NetworkInterceptionID
- type NetworkLoaderID
- type NetworkRequest
- type NetworkRequestID
- type NetworkResourcePriority
- type NetworkResourceTiming
- type NetworkResponse
- type NetworkSecurityDetails
- type NetworkSignedCertificateTimestamp
- type NetworkTimestamp
- type NetworkWebSocketFrame
- type NetworkWebSocketRequest
- type NetworkWebSocketResponse
- type OverlayHighlightConfig
- type OverlayInspectMode
- type PageAppManifestError
- type PageDialogType
- type PageFrame
- type PageFrameID
- type PageFrameResource
- type PageFrameResourceTree
- type PageLayoutViewport
- type PageNavigationEntry
- type PageNavigationResponse
- type PageResourceType
- type PageScreencastFrameMetadata
- type PageScriptIdentifier
- type PageTransitionType
- type PageVisualViewport
- type ProfilerCoverageRange
- type ProfilerFunctionCoverage
- type ProfilerPositionTickInfo
- type ProfilerProfile
- type ProfilerProfileNode
- type ProfilerScriptCoverage
- type RuntimeCallArgument
- type RuntimeCallFrame
- type RuntimeCustomPreview
- type RuntimeEntryPreview
- type RuntimeExceptionDetails
- type RuntimeExecutionContextDescription
- type RuntimeExecutionContextID
- type RuntimeInternalPropertyDescriptor
- type RuntimeObjectPreview
- type RuntimePropertyDescriptor
- type RuntimePropertyPreview
- type RuntimeRemoteObject
- type RuntimeRemoteObjectID
- type RuntimeScriptID
- type RuntimeStackTrace
- type RuntimeTimestamp
- type RuntimeUnserializableValue
- type SchemaDomain
- type SecurityCertificateErrorAction
- type SecurityCertificateID
- type SecurityInsecureContentStatus
- type SecurityState
- type SecurityStateExplanation
- type ServiceWorkerErrorMessage
- type ServiceWorkerRegistration
- type ServiceWorkerVersion
- type ServiceWorkerVersionRunningStatus
- type ServiceWorkerVersionStatus
- type StorageType
- type StorageUsageForType
- type SystemInfoGPUDevice
- type SystemInfoGPUInfo
- type TargetBrowserContextID
- type TargetID
- type TargetInfo
- type TargetRemoteLocation
- type Timestamp
- type TracingMemoryDumpConfig
- type TracingTraceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessibilityAXGlobalStates ¶
type AccessibilityAXGlobalStates int
AccessibilityAXGlobalStates States which apply to every AX node.
const ( AccessibilityAXGlobalStatesNotSet AccessibilityAXGlobalStates = iota AccessibilityAXGlobalStatesDisabled AccessibilityAXGlobalStatesHidden AccessibilityAXGlobalStatesHiddenRoot AccessibilityAXGlobalStatesInvalid AccessibilityAXGlobalStatesKeyshortcuts AccessibilityAXGlobalStatesRoledescription )
AccessibilityAXGlobalStates as enums.
func (AccessibilityAXGlobalStates) MarshalJSON ¶
func (e AccessibilityAXGlobalStates) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXGlobalStates) String ¶
func (e AccessibilityAXGlobalStates) String() string
func (*AccessibilityAXGlobalStates) UnmarshalJSON ¶
func (e *AccessibilityAXGlobalStates) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXGlobalStates) Valid ¶
func (e AccessibilityAXGlobalStates) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXLiveRegionAttributes ¶
type AccessibilityAXLiveRegionAttributes int
AccessibilityAXLiveRegionAttributes Attributes which apply to nodes in live regions.
const ( AccessibilityAXLiveRegionAttributesNotSet AccessibilityAXLiveRegionAttributes = iota AccessibilityAXLiveRegionAttributesLive AccessibilityAXLiveRegionAttributesAtomic AccessibilityAXLiveRegionAttributesRelevant AccessibilityAXLiveRegionAttributesBusy AccessibilityAXLiveRegionAttributesRoot )
AccessibilityAXLiveRegionAttributes as enums.
func (AccessibilityAXLiveRegionAttributes) MarshalJSON ¶
func (e AccessibilityAXLiveRegionAttributes) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXLiveRegionAttributes) String ¶
func (e AccessibilityAXLiveRegionAttributes) String() string
func (*AccessibilityAXLiveRegionAttributes) UnmarshalJSON ¶
func (e *AccessibilityAXLiveRegionAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXLiveRegionAttributes) Valid ¶
func (e AccessibilityAXLiveRegionAttributes) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXNode ¶
type AccessibilityAXNode struct {
NodeID AccessibilityAXNodeID `json:"nodeId"` // Unique identifier for this node.
Ignored bool `json:"ignored"` // Whether this node is ignored for accessibility
IgnoredReasons []AccessibilityAXProperty `json:"ignoredReasons,omitempty"` // Collection of reasons why this node is hidden.
Role *AccessibilityAXValue `json:"role,omitempty"` // This Node's role, whether explicit or implicit.
Name *AccessibilityAXValue `json:"name,omitempty"` // The accessible name for this Node.
Description *AccessibilityAXValue `json:"description,omitempty"` // The accessible description for this Node.
Value *AccessibilityAXValue `json:"value,omitempty"` // The value for this Node.
Properties []AccessibilityAXProperty `json:"properties,omitempty"` // All other properties
ChildIDs []AccessibilityAXNodeID `json:"childIds,omitempty"` // IDs for each of this node's child nodes.
BackendDOMNodeID *DOMBackendNodeID `json:"backendDOMNodeId,omitempty"` // The backend ID for the associated DOM node, if any.
}
AccessibilityAXNode A node in the accessibility tree.
type AccessibilityAXNodeID ¶
type AccessibilityAXNodeID string
AccessibilityAXNodeID Unique accessibility node identifier.
type AccessibilityAXProperty ¶
type AccessibilityAXProperty struct {
Name string `json:"name"` // The name of this property.
Value AccessibilityAXValue `json:"value"` // The value of this property.
}
AccessibilityAXProperty
type AccessibilityAXRelatedNode ¶
type AccessibilityAXRelatedNode struct {
BackendDOMNodeID DOMBackendNodeID `json:"backendDOMNodeId"` // The BackendNodeId of the related DOM node.
IDRef *string `json:"idref,omitempty"` // The IDRef value provided, if any.
Text *string `json:"text,omitempty"` // The text alternative of this node in the current context.
}
AccessibilityAXRelatedNode
type AccessibilityAXRelationshipAttributes ¶
type AccessibilityAXRelationshipAttributes int
AccessibilityAXRelationshipAttributes Relationships between elements other than parent/child/sibling.
const ( AccessibilityAXRelationshipAttributesNotSet AccessibilityAXRelationshipAttributes = iota AccessibilityAXRelationshipAttributesActivedescendant AccessibilityAXRelationshipAttributesControls AccessibilityAXRelationshipAttributesDescribedby AccessibilityAXRelationshipAttributesDetails AccessibilityAXRelationshipAttributesErrormessage AccessibilityAXRelationshipAttributesFlowto AccessibilityAXRelationshipAttributesLabelledby AccessibilityAXRelationshipAttributesOwns )
AccessibilityAXRelationshipAttributes as enums.
func (AccessibilityAXRelationshipAttributes) MarshalJSON ¶
func (e AccessibilityAXRelationshipAttributes) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXRelationshipAttributes) String ¶
func (e AccessibilityAXRelationshipAttributes) String() string
func (*AccessibilityAXRelationshipAttributes) UnmarshalJSON ¶
func (e *AccessibilityAXRelationshipAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXRelationshipAttributes) Valid ¶
func (e AccessibilityAXRelationshipAttributes) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXValue ¶
type AccessibilityAXValue struct {
Type AccessibilityAXValueType `json:"type"` // The type of this value.
Value json.RawMessage `json:"value,omitempty"` // The computed value of this property.
RelatedNodes []AccessibilityAXRelatedNode `json:"relatedNodes,omitempty"` // One or more related nodes, if applicable.
Sources []AccessibilityAXValueSource `json:"sources,omitempty"` // The sources which contributed to the computation of this property.
}
AccessibilityAXValue A single computed AX property.
type AccessibilityAXValueNativeSourceType ¶
type AccessibilityAXValueNativeSourceType int
AccessibilityAXValueNativeSourceType Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
const ( AccessibilityAXValueNativeSourceTypeNotSet AccessibilityAXValueNativeSourceType = iota AccessibilityAXValueNativeSourceTypeFigcaption AccessibilityAXValueNativeSourceTypeLabel AccessibilityAXValueNativeSourceTypeLabelfor AccessibilityAXValueNativeSourceTypeLabelwrapped AccessibilityAXValueNativeSourceTypeLegend AccessibilityAXValueNativeSourceTypeTablecaption AccessibilityAXValueNativeSourceTypeTitle AccessibilityAXValueNativeSourceTypeOther )
AccessibilityAXValueNativeSourceType as enums.
func (AccessibilityAXValueNativeSourceType) MarshalJSON ¶
func (e AccessibilityAXValueNativeSourceType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXValueNativeSourceType) String ¶
func (e AccessibilityAXValueNativeSourceType) String() string
func (*AccessibilityAXValueNativeSourceType) UnmarshalJSON ¶
func (e *AccessibilityAXValueNativeSourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXValueNativeSourceType) Valid ¶
func (e AccessibilityAXValueNativeSourceType) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXValueSource ¶
type AccessibilityAXValueSource struct {
Type AccessibilityAXValueSourceType `json:"type"` // What type of source this is.
Value *AccessibilityAXValue `json:"value,omitempty"` // The value of this property source.
Attribute *string `json:"attribute,omitempty"` // The name of the relevant attribute, if any.
AttributeValue *AccessibilityAXValue `json:"attributeValue,omitempty"` // The value of the relevant attribute, if any.
Superseded *bool `json:"superseded,omitempty"` // Whether this source is superseded by a higher priority source.
NativeSource AccessibilityAXValueNativeSourceType `json:"nativeSource,omitempty"` // The native markup source for this value, e.g. a <label> element.
NativeSourceValue *AccessibilityAXValue `json:"nativeSourceValue,omitempty"` // The value, such as a node or node list, of the native source.
Invalid *bool `json:"invalid,omitempty"` // Whether the value for this property is invalid.
InvalidReason *string `json:"invalidReason,omitempty"` // Reason for the value being invalid, if it is.
}
AccessibilityAXValueSource A single source for a computed AX property.
type AccessibilityAXValueSourceType ¶
type AccessibilityAXValueSourceType int
AccessibilityAXValueSourceType Enum of possible property sources.
const ( AccessibilityAXValueSourceTypeNotSet AccessibilityAXValueSourceType = iota AccessibilityAXValueSourceTypeAttribute AccessibilityAXValueSourceTypeImplicit AccessibilityAXValueSourceTypeStyle AccessibilityAXValueSourceTypeContents AccessibilityAXValueSourceTypePlaceholder AccessibilityAXValueSourceTypeRelatedElement )
AccessibilityAXValueSourceType as enums.
func (AccessibilityAXValueSourceType) MarshalJSON ¶
func (e AccessibilityAXValueSourceType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXValueSourceType) String ¶
func (e AccessibilityAXValueSourceType) String() string
func (*AccessibilityAXValueSourceType) UnmarshalJSON ¶
func (e *AccessibilityAXValueSourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXValueSourceType) Valid ¶
func (e AccessibilityAXValueSourceType) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXValueType ¶
type AccessibilityAXValueType int
AccessibilityAXValueType Enum of possible property types.
const ( AccessibilityAXValueTypeNotSet AccessibilityAXValueType = iota AccessibilityAXValueTypeBoolean AccessibilityAXValueTypeTristate AccessibilityAXValueTypeBooleanOrUndefined AccessibilityAXValueTypeIDRef AccessibilityAXValueTypeIdrefList AccessibilityAXValueTypeInteger AccessibilityAXValueTypeNode AccessibilityAXValueTypeNodeList AccessibilityAXValueTypeNumber AccessibilityAXValueTypeString AccessibilityAXValueTypeComputedString AccessibilityAXValueTypeToken AccessibilityAXValueTypeTokenList AccessibilityAXValueTypeDOMRelation AccessibilityAXValueTypeRole AccessibilityAXValueTypeInternalRole AccessibilityAXValueTypeValueUndefined )
AccessibilityAXValueType as enums.
func (AccessibilityAXValueType) MarshalJSON ¶
func (e AccessibilityAXValueType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXValueType) String ¶
func (e AccessibilityAXValueType) String() string
func (*AccessibilityAXValueType) UnmarshalJSON ¶
func (e *AccessibilityAXValueType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXValueType) Valid ¶
func (e AccessibilityAXValueType) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXWidgetAttributes ¶
type AccessibilityAXWidgetAttributes int
AccessibilityAXWidgetAttributes Attributes which apply to widgets.
const ( AccessibilityAXWidgetAttributesNotSet AccessibilityAXWidgetAttributes = iota AccessibilityAXWidgetAttributesAutocomplete AccessibilityAXWidgetAttributesHaspopup AccessibilityAXWidgetAttributesLevel AccessibilityAXWidgetAttributesMultiselectable AccessibilityAXWidgetAttributesOrientation AccessibilityAXWidgetAttributesMultiline AccessibilityAXWidgetAttributesReadonly AccessibilityAXWidgetAttributesRequired AccessibilityAXWidgetAttributesValuemin AccessibilityAXWidgetAttributesValuemax AccessibilityAXWidgetAttributesValuetext )
AccessibilityAXWidgetAttributes as enums.
func (AccessibilityAXWidgetAttributes) MarshalJSON ¶
func (e AccessibilityAXWidgetAttributes) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXWidgetAttributes) String ¶
func (e AccessibilityAXWidgetAttributes) String() string
func (*AccessibilityAXWidgetAttributes) UnmarshalJSON ¶
func (e *AccessibilityAXWidgetAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXWidgetAttributes) Valid ¶
func (e AccessibilityAXWidgetAttributes) Valid() bool
Valid returns true if enum is set.
type AccessibilityAXWidgetStates ¶
type AccessibilityAXWidgetStates int
AccessibilityAXWidgetStates States which apply to widgets.
const ( AccessibilityAXWidgetStatesNotSet AccessibilityAXWidgetStates = iota AccessibilityAXWidgetStatesChecked AccessibilityAXWidgetStatesExpanded AccessibilityAXWidgetStatesModal AccessibilityAXWidgetStatesPressed AccessibilityAXWidgetStatesSelected )
AccessibilityAXWidgetStates as enums.
func (AccessibilityAXWidgetStates) MarshalJSON ¶
func (e AccessibilityAXWidgetStates) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (AccessibilityAXWidgetStates) String ¶
func (e AccessibilityAXWidgetStates) String() string
func (*AccessibilityAXWidgetStates) UnmarshalJSON ¶
func (e *AccessibilityAXWidgetStates) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (AccessibilityAXWidgetStates) Valid ¶
func (e AccessibilityAXWidgetStates) Valid() bool
Valid returns true if enum is set.
type Animation ¶
type Animation struct {
ID string `json:"id"` // Animation's id.
Name string `json:"name"` // Animation's name.
PausedState bool `json:"pausedState"` // Animation's internal paused state.
PlayState string `json:"playState"` // Animation's play state.
PlaybackRate float64 `json:"playbackRate"` // Animation's playback rate.
StartTime float64 `json:"startTime"` // Animation's start time.
CurrentTime float64 `json:"currentTime"` // Animation's current time.
Source AnimationEffect `json:"source"` // Animation's source animation node.
Type string `json:"type"` // Animation type of Animation.
CSSID *string `json:"cssId,omitempty"` // A unique ID for Animation representing the sources that triggered this CSS animation/transition.
}
Animation Animation instance.
type AnimationEffect ¶
type AnimationEffect struct {
Delay float64 `json:"delay"` // AnimationEffect's delay.
EndDelay float64 `json:"endDelay"` // AnimationEffect's end delay.
IterationStart float64 `json:"iterationStart"` // AnimationEffect's iteration start.
Iterations float64 `json:"iterations"` // AnimationEffect's iterations.
Duration float64 `json:"duration"` // AnimationEffect's iteration duration.
Direction string `json:"direction"` // AnimationEffect's playback direction.
Fill string `json:"fill"` // AnimationEffect's fill mode.
BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // AnimationEffect's target node.
KeyframesRule *AnimationKeyframesRule `json:"keyframesRule,omitempty"` // AnimationEffect's keyframes.
Easing string `json:"easing"` // AnimationEffect's timing function.
}
AnimationEffect AnimationEffect instance
type AnimationKeyframeStyle ¶
type AnimationKeyframeStyle struct {
Offset string `json:"offset"` // Keyframe's time offset.
Easing string `json:"easing"` // AnimationEffect's timing function.
}
AnimationKeyframeStyle Keyframe Style
type AnimationKeyframesRule ¶
type AnimationKeyframesRule struct {
Name *string `json:"name,omitempty"` // CSS keyframed animation's name.
Keyframes []AnimationKeyframeStyle `json:"keyframes"` // List of animation keyframes.
}
AnimationKeyframesRule Keyframes Rule
type ApplicationCache ¶
type ApplicationCache struct {
ManifestURL string `json:"manifestURL"` // Manifest URL.
Size float64 `json:"size"` // Application cache size.
CreationTime float64 `json:"creationTime"` // Application cache creation time.
UpdateTime float64 `json:"updateTime"` // Application cache update time.
Resources []ApplicationCacheResource `json:"resources"` // Application cache resources.
}
ApplicationCache Detailed application cache information.
type ApplicationCacheFrameWithManifest ¶
type ApplicationCacheFrameWithManifest struct {
FrameID PageFrameID `json:"frameId"` // Frame identifier.
ManifestURL string `json:"manifestURL"` // Manifest URL.
Status int `json:"status"` // Application cache status.
}
ApplicationCacheFrameWithManifest Frame identifier - manifest URL pair.
type ApplicationCacheResource ¶
type ApplicationCacheResource struct {
URL string `json:"url"` // Resource url.
Size int `json:"size"` // Resource size.
Type string `json:"type"` // Resource type.
}
ApplicationCacheResource Detailed application cache resource information.
type BrowserBounds ¶
type BrowserBounds struct {
Left *int `json:"left,omitempty"` // The offset from the left edge of the screen to the window in pixels.
Top *int `json:"top,omitempty"` // The offset from the top edge of the screen to the window in pixels.
Width *int `json:"width,omitempty"` // The window width in pixels.
Height *int `json:"height,omitempty"` // The window height in pixels.
WindowState BrowserWindowState `json:"windowState,omitempty"` // The window state. Default to normal.
}
BrowserBounds Browser window bounds information
type BrowserWindowState ¶
type BrowserWindowState int
BrowserWindowState The state of the browser window.
const ( BrowserWindowStateNotSet BrowserWindowState = iota BrowserWindowStateNormal BrowserWindowStateMinimized BrowserWindowStateMaximized BrowserWindowStateFullscreen )
BrowserWindowState as enums.
func (BrowserWindowState) MarshalJSON ¶
func (e BrowserWindowState) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (BrowserWindowState) String ¶
func (e BrowserWindowState) String() string
func (*BrowserWindowState) UnmarshalJSON ¶
func (e *BrowserWindowState) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (BrowserWindowState) Valid ¶
func (e BrowserWindowState) Valid() bool
Valid returns true if enum is set.
type CSSComputedStyleProperty ¶
type CSSComputedStyleProperty struct {
Name string `json:"name"` // Computed style property name.
Value string `json:"value"` // Computed style property value.
}
CSSComputedStyleProperty
type CSSInheritedStyleEntry ¶
type CSSInheritedStyleEntry struct {
InlineStyle *CSSStyle `json:"inlineStyle,omitempty"` // The ancestor node's inline style, if any, in the style inheritance chain.
MatchedCSSRules []CSSRuleMatch `json:"matchedCSSRules"` // Matches of CSS rules matching the ancestor node in the style inheritance chain.
}
CSSInheritedStyleEntry Inherited CSS rule collection from ancestor node.
type CSSInlineTextBox ¶
type CSSInlineTextBox struct {
BoundingBox DOMRect `json:"boundingBox"` // The absolute position bounding box.
StartCharacterIndex int `json:"startCharacterIndex"` // The starting index in characters, for this post layout textbox substring.
NumCharacters int `json:"numCharacters"` // The number of characters in this post layout textbox substring.
}
CSSInlineTextBox Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
type CSSKeyframeRule ¶
type CSSKeyframeRule struct {
StyleSheetID *CSSStyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Origin CSSStyleSheetOrigin `json:"origin"` // Parent stylesheet's origin.
KeyText CSSValue `json:"keyText"` // Associated key text.
Style CSSStyle `json:"style"` // Associated style declaration.
}
CSSKeyframeRule CSS keyframe rule representation.
type CSSKeyframesRule ¶
type CSSKeyframesRule struct {
AnimationName CSSValue `json:"animationName"` // Animation name.
Keyframes []CSSKeyframeRule `json:"keyframes"` // List of keyframes.
}
CSSKeyframesRule CSS keyframes rule representation.
type CSSMedia ¶
type CSSMedia struct {
Text string `json:"text"` // Media query text.
Source string `json:"source"` // Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
SourceURL *string `json:"sourceURL,omitempty"` // URL of the document containing the media query description.
Range *CSSSourceRange `json:"range,omitempty"` // The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
StyleSheetID *CSSStyleSheetID `json:"styleSheetId,omitempty"` // Identifier of the stylesheet containing this object (if exists).
MediaList []CSSMediaQuery `json:"mediaList,omitempty"` // Array of media queries.
}
CSSMedia CSS media rule descriptor.
type CSSMediaQuery ¶
type CSSMediaQuery struct {
Expressions []CSSMediaQueryExpression `json:"expressions"` // Array of media query expressions.
Active bool `json:"active"` // Whether the media query condition is satisfied.
}
CSSMediaQuery Media query descriptor.
type CSSMediaQueryExpression ¶
type CSSMediaQueryExpression struct {
Value float64 `json:"value"` // Media query expression value.
Unit string `json:"unit"` // Media query expression units.
Feature string `json:"feature"` // Media query expression feature.
ValueRange *CSSSourceRange `json:"valueRange,omitempty"` // The associated range of the value text in the enclosing stylesheet (if available).
ComputedLength *float64 `json:"computedLength,omitempty"` // Computed length of media query expression (if applicable).
}
CSSMediaQueryExpression Media query expression descriptor.
type CSSPlatformFontUsage ¶
type CSSPlatformFontUsage struct {
FamilyName string `json:"familyName"` // Font's family name reported by platform.
IsCustomFont bool `json:"isCustomFont"` // Indicates if the font was downloaded or resolved locally.
GlyphCount float64 `json:"glyphCount"` // Amount of glyphs that were rendered with this font.
}
CSSPlatformFontUsage Information about amount of glyphs that were rendered with given font.
type CSSProperty ¶
type CSSProperty struct {
Name string `json:"name"` // The property name.
Value string `json:"value"` // The property value.
Important *bool `json:"important,omitempty"` // Whether the property has "!important" annotation (implies false if absent).
Implicit *bool `json:"implicit,omitempty"` // Whether the property is implicit (implies false if absent).
Text *string `json:"text,omitempty"` // The full property text as specified in the style.
ParsedOk *bool `json:"parsedOk,omitempty"` // Whether the property is understood by the browser (implies true if absent).
Disabled *bool `json:"disabled,omitempty"` // Whether the property is disabled by the user (present for source-based properties only).
Range *CSSSourceRange `json:"range,omitempty"` // The entire property range in the enclosing style declaration (if available).
}
CSSProperty CSS property declaration data.
type CSSPseudoElementMatches ¶
type CSSPseudoElementMatches struct {
PseudoType DOMPseudoType `json:"pseudoType"` // Pseudo element type.
Matches []CSSRuleMatch `json:"matches"` // Matches of CSS rules applicable to the pseudo style.
}
CSSPseudoElementMatches CSS rule collection for a single pseudo style.
type CSSRule ¶
type CSSRule struct {
StyleSheetID *CSSStyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
SelectorList CSSSelectorList `json:"selectorList"` // Rule selector data.
Origin CSSStyleSheetOrigin `json:"origin"` // Parent stylesheet's origin.
Style CSSStyle `json:"style"` // Associated style declaration.
Media []CSSMedia `json:"media,omitempty"` // Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
}
CSSRule CSS rule representation.
type CSSRuleMatch ¶
type CSSRuleMatch struct {
Rule CSSRule `json:"rule"` // CSS rule in the match.
MatchingSelectors []int `json:"matchingSelectors"` // Matching selector indices in the rule's selectorList selectors (0-based).
}
CSSRuleMatch Match data for a CSS rule.
type CSSRuleUsage ¶
type CSSRuleUsage struct {
StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
StartOffset float64 `json:"startOffset"` // Offset of the start of the rule (including selector) from the beginning of the stylesheet.
EndOffset float64 `json:"endOffset"` // Offset of the end of the rule body from the beginning of the stylesheet.
Used bool `json:"used"` // Indicates whether the rule was actually used by some element in the page.
}
CSSRuleUsage CSS coverage information.
type CSSSelectorList ¶
type CSSSelectorList struct {
Selectors []CSSValue `json:"selectors"` // Selectors in the list.
Text string `json:"text"` // Rule selector text.
}
CSSSelectorList Selector list data.
type CSSShorthandEntry ¶
type CSSShorthandEntry struct {
Name string `json:"name"` // Shorthand name.
Value string `json:"value"` // Shorthand value.
Important *bool `json:"important,omitempty"` // Whether the property has "!important" annotation (implies false if absent).
}
CSSShorthandEntry
type CSSSourceRange ¶
type CSSSourceRange struct {
StartLine int `json:"startLine"` // Start line of range.
StartColumn int `json:"startColumn"` // Start column of range (inclusive).
EndLine int `json:"endLine"` // End line of range
EndColumn int `json:"endColumn"` // End column of range (exclusive).
}
CSSSourceRange Text range within a resource. All numbers are zero-based.
type CSSStyle ¶
type CSSStyle struct {
StyleSheetID *CSSStyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
CSSProperties []CSSProperty `json:"cssProperties"` // CSS properties in the style.
ShorthandEntries []CSSShorthandEntry `json:"shorthandEntries"` // Computed values for all shorthands found in the style.
CSSText *string `json:"cssText,omitempty"` // Style declaration text (if available).
Range *CSSSourceRange `json:"range,omitempty"` // Style declaration range in the enclosing stylesheet (if available).
}
CSSStyle CSS style representation.
type CSSStyleDeclarationEdit ¶
type CSSStyleDeclarationEdit struct {
StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // The css style sheet identifier.
Range CSSSourceRange `json:"range"` // The range of the style text in the enclosing stylesheet.
Text string `json:"text"` // New style text.
}
CSSStyleDeclarationEdit A descriptor of operation to mutate style declaration text.
type CSSStyleSheetHeader ¶
type CSSStyleSheetHeader struct {
StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // The stylesheet identifier.
FrameID PageFrameID `json:"frameId"` // Owner frame identifier.
SourceURL string `json:"sourceURL"` // Stylesheet resource URL.
SourceMapURL *string `json:"sourceMapURL,omitempty"` // URL of source map associated with the stylesheet (if any).
Origin CSSStyleSheetOrigin `json:"origin"` // Stylesheet origin.
Title string `json:"title"` // Stylesheet title.
OwnerNode *DOMBackendNodeID `json:"ownerNode,omitempty"` // The backend id for the owner node of the stylesheet.
Disabled bool `json:"disabled"` // Denotes whether the stylesheet is disabled.
HasSourceURL *bool `json:"hasSourceURL,omitempty"` // Whether the sourceURL field value comes from the sourceURL comment.
IsInline bool `json:"isInline"` // Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
StartLine float64 `json:"startLine"` // Line offset of the stylesheet within the resource (zero based).
StartColumn float64 `json:"startColumn"` // Column offset of the stylesheet within the resource (zero based).
Length float64 `json:"length"` // Size of the content (in characters).
}
CSSStyleSheetHeader CSS stylesheet metainformation.
type CSSStyleSheetOrigin ¶
type CSSStyleSheetOrigin int
CSSStyleSheetOrigin Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via inspector" rules), "regular" for regular stylesheets.
const ( CSSStyleSheetOriginNotSet CSSStyleSheetOrigin = iota CSSStyleSheetOriginInjected CSSStyleSheetOriginUserAgent CSSStyleSheetOriginInspector CSSStyleSheetOriginRegular )
CSSStyleSheetOrigin as enums.
func (CSSStyleSheetOrigin) MarshalJSON ¶
func (e CSSStyleSheetOrigin) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (CSSStyleSheetOrigin) String ¶
func (e CSSStyleSheetOrigin) String() string
func (*CSSStyleSheetOrigin) UnmarshalJSON ¶
func (e *CSSStyleSheetOrigin) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (CSSStyleSheetOrigin) Valid ¶
func (e CSSStyleSheetOrigin) Valid() bool
Valid returns true if enum is set.
type CSSValue ¶
type CSSValue struct {
Text string `json:"text"` // Value text.
Range *CSSSourceRange `json:"range,omitempty"` // Value range in the underlying resource (if available).
}
CSSValue Data for a simple selector (these are delimited by commas in a selector list).
type CacheStorageCache ¶
type CacheStorageCache struct {
CacheID CacheStorageCacheID `json:"cacheId"` // An opaque unique id of the cache.
SecurityOrigin string `json:"securityOrigin"` // Security origin of the cache.
CacheName string `json:"cacheName"` // The name of the cache.
}
CacheStorageCache Cache identifier.
type CacheStorageCacheID ¶
type CacheStorageCacheID string
CacheStorageCacheID Unique identifier of the Cache object.
type CacheStorageDataEntry ¶
type CacheStorageDataEntry struct {
Request string `json:"request"` // Request url spec.
Response string `json:"response"` // Response status text.
ResponseTime float64 `json:"responseTime"` // Number of seconds since epoch.
}
CacheStorageDataEntry Data entry.
type ConsoleMessage ¶
type ConsoleMessage struct {
Source string `json:"source"` // Message source.
Level string `json:"level"` // Message severity.
Text string `json:"text"` // Message text.
URL *string `json:"url,omitempty"` // URL of the message origin.
Line *int `json:"line,omitempty"` // Line number in the resource that generated this message (1-based).
Column *int `json:"column,omitempty"` // Column number in the resource that generated this message (1-based).
}
ConsoleMessage Console message.
type DOMBackendNode ¶
type DOMBackendNode struct {
NodeType int `json:"nodeType"` // Node's nodeType.
NodeName string `json:"nodeName"` // Node's nodeName.
BackendNodeID DOMBackendNodeID `json:"backendNodeId"` //
}
DOMBackendNode Backend node with a friendly name.
type DOMBackendNodeID ¶
type DOMBackendNodeID int
DOMBackendNodeID Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.
type DOMBoxModel ¶
type DOMBoxModel struct {
Content DOMQuad `json:"content"` // Content box
Padding DOMQuad `json:"padding"` // Padding box
Border DOMQuad `json:"border"` // Border box
Margin DOMQuad `json:"margin"` // Margin box
Width int `json:"width"` // Node width
Height int `json:"height"` // Node height
ShapeOutside *DOMShapeOutsideInfo `json:"shapeOutside,omitempty"` // Shape outside coordinates
}
DOMBoxModel Box model.
type DOMDebuggerDOMBreakpointType ¶
type DOMDebuggerDOMBreakpointType int
DOMDebuggerDOMBreakpointType DOM breakpoint type.
const ( DOMDebuggerDOMBreakpointTypeNotSet DOMDebuggerDOMBreakpointType = iota DOMDebuggerDOMBreakpointTypeSubtreeModified DOMDebuggerDOMBreakpointTypeAttributeModified DOMDebuggerDOMBreakpointTypeNodeRemoved )
DOMDebuggerDOMBreakpointType as enums.
func (DOMDebuggerDOMBreakpointType) MarshalJSON ¶
func (e DOMDebuggerDOMBreakpointType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (DOMDebuggerDOMBreakpointType) String ¶
func (e DOMDebuggerDOMBreakpointType) String() string
func (*DOMDebuggerDOMBreakpointType) UnmarshalJSON ¶
func (e *DOMDebuggerDOMBreakpointType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (DOMDebuggerDOMBreakpointType) Valid ¶
func (e DOMDebuggerDOMBreakpointType) Valid() bool
Valid returns true if enum is set.
type DOMDebuggerEventListener ¶
type DOMDebuggerEventListener struct {
Type string `json:"type"` // EventListener's type.
UseCapture bool `json:"useCapture"` // EventListener's useCapture.
Passive bool `json:"passive"` // EventListener's passive flag.
Once bool `json:"once"` // EventListener's once flag.
ScriptID RuntimeScriptID `json:"scriptId"` // Script id of the handler code.
LineNumber int `json:"lineNumber"` // Line number in the script (0-based).
ColumnNumber int `json:"columnNumber"` // Column number in the script (0-based).
Handler *RuntimeRemoteObject `json:"handler,omitempty"` // Event handler function value.
OriginalHandler *RuntimeRemoteObject `json:"originalHandler,omitempty"` // Event original handler function value.
BackendNodeID *DOMBackendNodeID `json:"backendNodeId,omitempty"` // Node the listener is added to (if any).
}
DOMDebuggerEventListener Object event listener.
type DOMNode ¶
type DOMNode struct {
NodeID DOMNodeID `json:"nodeId"` // Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
ParentID *DOMNodeID `json:"parentId,omitempty"` // The id of the parent node if any.
BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // The BackendNodeId for this node.
NodeType int `json:"nodeType"` // Node's nodeType.
NodeName string `json:"nodeName"` // Node's nodeName.
LocalName string `json:"localName"` // Node's localName.
NodeValue string `json:"nodeValue"` // Node's nodeValue.
ChildNodeCount *int `json:"childNodeCount,omitempty"` // Child count for Container nodes.
Children []DOMNode `json:"children,omitempty"` // Child nodes of this node when requested with children.
Attributes []string `json:"attributes,omitempty"` // Attributes of the Element node in the form of flat array [name1, value1, name2, value2].
DocumentURL *string `json:"documentURL,omitempty"` // Document URL that Document or FrameOwner node points to.
BaseURL *string `json:"baseURL,omitempty"` // Base URL that Document or FrameOwner node uses for URL completion.
PublicID *string `json:"publicId,omitempty"` // DocumentType's publicId.
SystemID *string `json:"systemId,omitempty"` // DocumentType's systemId.
InternalSubset *string `json:"internalSubset,omitempty"` // DocumentType's internalSubset.
XMLVersion *string `json:"xmlVersion,omitempty"` // Document's XML version in case of XML documents.
Name *string `json:"name,omitempty"` // Attr's name.
Value *string `json:"value,omitempty"` // Attr's value.
PseudoType DOMPseudoType `json:"pseudoType,omitempty"` // Pseudo element type for this node.
ShadowRootType DOMShadowRootType `json:"shadowRootType,omitempty"` // Shadow root type.
FrameID *PageFrameID `json:"frameId,omitempty"` // Frame ID for frame owner elements.
ContentDocument *DOMNode `json:"contentDocument,omitempty"` // Content document for frame owner elements.
ShadowRoots []DOMNode `json:"shadowRoots,omitempty"` // Shadow root list for given element host.
TemplateContent *DOMNode `json:"templateContent,omitempty"` // Content document fragment for template elements.
PseudoElements []DOMNode `json:"pseudoElements,omitempty"` // Pseudo elements associated with this node.
ImportedDocument *DOMNode `json:"importedDocument,omitempty"` // Import document for the HTMLImport links.
DistributedNodes []DOMBackendNode `json:"distributedNodes,omitempty"` // Distributed nodes for given insertion point.
IsSVG *bool `json:"isSVG,omitempty"` // Whether the node is SVG.
}
DOMNode DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
type DOMPseudoType ¶
type DOMPseudoType int
DOMPseudoType Pseudo element type.
const ( DOMPseudoTypeNotSet DOMPseudoType = iota DOMPseudoTypeFirstLine DOMPseudoTypeFirstLetter DOMPseudoTypeBefore DOMPseudoTypeAfter DOMPseudoTypeBackdrop DOMPseudoTypeSelection DOMPseudoTypeFirstLineInherited DOMPseudoTypeScrollbar DOMPseudoTypeScrollbarThumb DOMPseudoTypeScrollbarButton DOMPseudoTypeScrollbarTrack DOMPseudoTypeScrollbarTrackPiece DOMPseudoTypeScrollbarCorner DOMPseudoTypeResizer DOMPseudoTypeInputListButton )
DOMPseudoType as enums.
func (DOMPseudoType) MarshalJSON ¶
func (e DOMPseudoType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (DOMPseudoType) String ¶
func (e DOMPseudoType) String() string
func (*DOMPseudoType) UnmarshalJSON ¶
func (e *DOMPseudoType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
type DOMQuad ¶
type DOMQuad []float64
DOMQuad An array of quad vertices, x immediately followed by y for each point, points clock-wise.
type DOMRGBA ¶
type DOMRGBA struct {
R int `json:"r"` // The red component, in the [0-255] range.
G int `json:"g"` // The green component, in the [0-255] range.
B int `json:"b"` // The blue component, in the [0-255] range.
A *float64 `json:"a,omitempty"` // The alpha component, in the [0-1] range (default: 1).
}
DOMRGBA A structure holding an RGBA color.
type DOMRect ¶
type DOMRect struct {
X float64 `json:"x"` // X coordinate
Y float64 `json:"y"` // Y coordinate
Width float64 `json:"width"` // Rectangle width
Height float64 `json:"height"` // Rectangle height
}
DOMRect Rectangle.
type DOMShadowRootType ¶
type DOMShadowRootType int
DOMShadowRootType Shadow root type.
const ( DOMShadowRootTypeNotSet DOMShadowRootType = iota DOMShadowRootTypeUserAgent DOMShadowRootTypeOpen DOMShadowRootTypeClosed )
DOMShadowRootType as enums.
func (DOMShadowRootType) MarshalJSON ¶
func (e DOMShadowRootType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (DOMShadowRootType) String ¶
func (e DOMShadowRootType) String() string
func (*DOMShadowRootType) UnmarshalJSON ¶
func (e *DOMShadowRootType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (DOMShadowRootType) Valid ¶
func (e DOMShadowRootType) Valid() bool
Valid returns true if enum is set.
type DOMShapeOutsideInfo ¶
type DOMShapeOutsideInfo struct {
Bounds DOMQuad `json:"bounds"` // Shape bounds
Shape []json.RawMessage `json:"shape"` // Shape coordinate details
MarginShape []json.RawMessage `json:"marginShape"` // Margin shape bounds
}
DOMShapeOutsideInfo CSS Shape Outside details.
type DOMSnapshotComputedStyle ¶
type DOMSnapshotComputedStyle struct {
Properties []DOMSnapshotNameValue `json:"properties"` // Name/value pairs of computed style properties.
}
DOMSnapshotComputedStyle A subset of the full ComputedStyle as defined by the request whitelist.
type DOMSnapshotDOMNode ¶
type DOMSnapshotDOMNode struct {
NodeType int `json:"nodeType"` // Node's nodeType.
NodeName string `json:"nodeName"` // Node's nodeName.
NodeValue string `json:"nodeValue"` // Node's nodeValue.
BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // Node's id, corresponds to DOM.Node.backendNodeId.
ChildNodeIndexes []int `json:"childNodeIndexes,omitempty"` // The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
Attributes []DOMSnapshotNameValue `json:"attributes,omitempty"` // Attributes of an Element node.
PseudoElementIndexes []int `json:"pseudoElementIndexes,omitempty"` // Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
LayoutNodeIndex *int `json:"layoutNodeIndex,omitempty"` // The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
DocumentURL *string `json:"documentURL,omitempty"` // Document URL that Document or FrameOwner node points to.
BaseURL *string `json:"baseURL,omitempty"` // Base URL that Document or FrameOwner node uses for URL completion.
ContentLanguage *string `json:"contentLanguage,omitempty"` // Only set for documents, contains the document's content language.
PublicID *string `json:"publicId,omitempty"` // DocumentType node's publicId.
SystemID *string `json:"systemId,omitempty"` // DocumentType node's systemId.
FrameID *PageFrameID `json:"frameId,omitempty"` // Frame ID for frame owner elements.
ContentDocumentIndex *int `json:"contentDocumentIndex,omitempty"` // The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
ImportedDocumentIndex *int `json:"importedDocumentIndex,omitempty"` // Index of the imported document's node of a link element in the domNodes array returned by getSnapshot, if any.
TemplateContentIndex *int `json:"templateContentIndex,omitempty"` // Index of the content node of a template element in the domNodes array returned by getSnapshot.
PseudoType DOMPseudoType `json:"pseudoType,omitempty"` // Type of a pseudo element node.
IsClickable *bool `json:"isClickable,omitempty"` // Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
}
DOMSnapshotDOMNode A Node in the DOM tree.
type DOMSnapshotLayoutTreeNode ¶
type DOMSnapshotLayoutTreeNode struct {
DOMNodeIndex int `json:"domNodeIndex"` // The index of the related DOM node in the domNodes array returned by getSnapshot.
BoundingBox DOMRect `json:"boundingBox"` // The absolute position bounding box.
LayoutText *string `json:"layoutText,omitempty"` // Contents of the LayoutText, if any.
InlineTextNodes []CSSInlineTextBox `json:"inlineTextNodes,omitempty"` // The post-layout inline text nodes, if any.
StyleIndex *int `json:"styleIndex,omitempty"` // Index into the computedStyles array returned by getSnapshot.
}
DOMSnapshotLayoutTreeNode Details of an element in the DOM tree with a LayoutObject.
type DOMSnapshotNameValue ¶
type DOMSnapshotNameValue struct {
Name string `json:"name"` // Attribute/property name.
Value string `json:"value"` // Attribute/property value.
}
DOMSnapshotNameValue A name/value pair.
type DOMStorageStorageID ¶
type DOMStorageStorageID struct {
SecurityOrigin string `json:"securityOrigin"` // Security origin for the storage.
IsLocalStorage bool `json:"isLocalStorage"` // Whether the storage is local storage (not session storage).
}
DOMStorageStorageID DOM Storage identifier.
type Database ¶
type Database struct {
ID DatabaseID `json:"id"` // Database ID.
Domain string `json:"domain"` // Database domain.
Name string `json:"name"` // Database name.
Version string `json:"version"` // Database version.
}
Database Database object.
type DatabaseError ¶
type DatabaseError struct {
Message string `json:"message"` // Error message.
Code int `json:"code"` // Error code.
}
DatabaseError Database error.
type DebuggerBreakLocation ¶
type DebuggerBreakLocation struct {
ScriptID RuntimeScriptID `json:"scriptId"` // Script identifier as reported in the Debugger.scriptParsed.
LineNumber int `json:"lineNumber"` // Line number in the script (0-based).
ColumnNumber *int `json:"columnNumber,omitempty"` // Column number in the script (0-based).
Type *string `json:"type,omitempty"` //
}
DebuggerBreakLocation
type DebuggerBreakpointID ¶
type DebuggerBreakpointID string
DebuggerBreakpointID Breakpoint identifier.
type DebuggerCallFrame ¶
type DebuggerCallFrame struct {
CallFrameID DebuggerCallFrameID `json:"callFrameId"` // Call frame identifier. This identifier is only valid while the virtual machine is paused.
FunctionName string `json:"functionName"` // Name of the JavaScript function called on this call frame.
FunctionLocation *DebuggerLocation `json:"functionLocation,omitempty"` // Location in the source code.
Location DebuggerLocation `json:"location"` // Location in the source code.
ScopeChain []DebuggerScope `json:"scopeChain"` // Scope chain for this call frame.
This RuntimeRemoteObject `json:"this"` // this object for this call frame.
ReturnValue *RuntimeRemoteObject `json:"returnValue,omitempty"` // The value being returned, if the function is at return point.
}
DebuggerCallFrame JavaScript call frame. Array of call frames form the call stack.
type DebuggerCallFrameID ¶
type DebuggerCallFrameID string
DebuggerCallFrameID Call frame identifier.
type DebuggerLocation ¶
type DebuggerLocation struct {
ScriptID RuntimeScriptID `json:"scriptId"` // Script identifier as reported in the Debugger.scriptParsed.
LineNumber int `json:"lineNumber"` // Line number in the script (0-based).
ColumnNumber *int `json:"columnNumber,omitempty"` // Column number in the script (0-based).
}
DebuggerLocation Location in the source code.
type DebuggerScope ¶
type DebuggerScope struct {
Type string `json:"type"` // Scope type.
Object RuntimeRemoteObject `json:"object"` // Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
Name *string `json:"name,omitempty"` //
StartLocation *DebuggerLocation `json:"startLocation,omitempty"` // Location in the source code where scope starts
EndLocation *DebuggerLocation `json:"endLocation,omitempty"` // Location in the source code where scope ends
}
DebuggerScope Scope description.
type DebuggerScriptPosition ¶
type DebuggerScriptPosition struct {
LineNumber int `json:"lineNumber"` //
ColumnNumber int `json:"columnNumber"` //
}
DebuggerScriptPosition Location in the source code.
type DebuggerSearchMatch ¶
type DebuggerSearchMatch struct {
LineNumber float64 `json:"lineNumber"` // Line number in resource content.
LineContent string `json:"lineContent"` // Line with match content.
}
DebuggerSearchMatch Search match for resource.
type EmulationScreenOrientation ¶
type EmulationScreenOrientation struct {
Type string `json:"type"` // Orientation type.
Angle int `json:"angle"` // Orientation angle.
}
EmulationScreenOrientation Screen orientation.
type EmulationVirtualTimePolicy ¶
type EmulationVirtualTimePolicy int
EmulationVirtualTimePolicy 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.
const ( EmulationVirtualTimePolicyNotSet EmulationVirtualTimePolicy = iota EmulationVirtualTimePolicyAdvance EmulationVirtualTimePolicyPause EmulationVirtualTimePolicyPauseIfNetworkFetchesPending )
EmulationVirtualTimePolicy as enums.
func (EmulationVirtualTimePolicy) MarshalJSON ¶
func (e EmulationVirtualTimePolicy) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (EmulationVirtualTimePolicy) String ¶
func (e EmulationVirtualTimePolicy) String() string
func (*EmulationVirtualTimePolicy) UnmarshalJSON ¶
func (e *EmulationVirtualTimePolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (EmulationVirtualTimePolicy) Valid ¶
func (e EmulationVirtualTimePolicy) Valid() bool
Valid returns true if enum is set.
type HeapProfilerHeapSnapshotObjectID ¶
type HeapProfilerHeapSnapshotObjectID string
HeapProfilerHeapSnapshotObjectID Heap snapshot object id.
type HeapProfilerSamplingHeapProfile ¶
type HeapProfilerSamplingHeapProfile struct {
Head HeapProfilerSamplingHeapProfileNode `json:"head"` //
}
HeapProfilerSamplingHeapProfile Profile.
type HeapProfilerSamplingHeapProfileNode ¶
type HeapProfilerSamplingHeapProfileNode struct {
CallFrame RuntimeCallFrame `json:"callFrame"` // Function location.
SelfSize float64 `json:"selfSize"` // Allocations size in bytes for the node excluding children.
Children []HeapProfilerSamplingHeapProfileNode `json:"children"` // Child nodes.
}
HeapProfilerSamplingHeapProfileNode Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
type IndexedDBDataEntry ¶
type IndexedDBDataEntry struct {
Key RuntimeRemoteObject `json:"key"` // Key object.
PrimaryKey RuntimeRemoteObject `json:"primaryKey"` // Primary key object.
Value RuntimeRemoteObject `json:"value"` // Value object.
}
IndexedDBDataEntry Data entry.
type IndexedDBDatabaseWithObjectStores ¶
type IndexedDBDatabaseWithObjectStores struct {
Name string `json:"name"` // Database name.
Version int `json:"version"` // Database version.
ObjectStores []IndexedDBObjectStore `json:"objectStores"` // Object stores in this database.
}
IndexedDBDatabaseWithObjectStores Database with an array of object stores.
type IndexedDBKey ¶
type IndexedDBKey struct {
Type string `json:"type"` // Key type.
Number *float64 `json:"number,omitempty"` // Number value.
String *string `json:"string,omitempty"` // String value.
Date *float64 `json:"date,omitempty"` // Date value.
Array []IndexedDBKey `json:"array,omitempty"` // Array value.
}
IndexedDBKey Key.
type IndexedDBKeyPath ¶
type IndexedDBKeyPath struct {
Type string `json:"type"` // Key path type.
String *string `json:"string,omitempty"` // String value.
Array []string `json:"array,omitempty"` // Array value.
}
IndexedDBKeyPath Key path.
type IndexedDBKeyRange ¶
type IndexedDBKeyRange struct {
Lower *IndexedDBKey `json:"lower,omitempty"` // Lower bound.
Upper *IndexedDBKey `json:"upper,omitempty"` // Upper bound.
LowerOpen bool `json:"lowerOpen"` // If true lower bound is open.
UpperOpen bool `json:"upperOpen"` // If true upper bound is open.
}
IndexedDBKeyRange Key range.
type IndexedDBObjectStore ¶
type IndexedDBObjectStore struct {
Name string `json:"name"` // Object store name.
KeyPath IndexedDBKeyPath `json:"keyPath"` // Object store key path.
AutoIncrement bool `json:"autoIncrement"` // If true, object store has auto increment flag set.
Indexes []IndexedDBObjectStoreIndex `json:"indexes"` // Indexes in this object store.
}
IndexedDBObjectStore Object store.
type IndexedDBObjectStoreIndex ¶
type IndexedDBObjectStoreIndex struct {
Name string `json:"name"` // Index name.
KeyPath IndexedDBKeyPath `json:"keyPath"` // Index key path.
Unique bool `json:"unique"` // If true, index is unique.
MultiEntry bool `json:"multiEntry"` // If true, index allows multiple entries for a key.
}
IndexedDBObjectStoreIndex Object store index.
type InputGestureSourceType ¶
type InputGestureSourceType int
InputGestureSourceType
const ( InputGestureSourceTypeNotSet InputGestureSourceType = iota InputGestureSourceTypeDefault InputGestureSourceTypeTouch InputGestureSourceTypeMouse )
InputGestureSourceType as enums.
func (InputGestureSourceType) MarshalJSON ¶
func (e InputGestureSourceType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (InputGestureSourceType) String ¶
func (e InputGestureSourceType) String() string
func (*InputGestureSourceType) UnmarshalJSON ¶
func (e *InputGestureSourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (InputGestureSourceType) Valid ¶
func (e InputGestureSourceType) Valid() bool
Valid returns true if enum is set.
type InputTouchPoint ¶
type InputTouchPoint struct {
State string `json:"state"` // State of the touch point.
X int `json:"x"` // X coordinate of the event relative to the main frame's viewport.
Y int `json:"y"` // Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
RadiusX *int `json:"radiusX,omitempty"` // X radius of the touch area (default: 1).
RadiusY *int `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1).
RotationAngle *float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0).
Force *float64 `json:"force,omitempty"` // Force (default: 1.0).
ID *float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event.
}
InputTouchPoint
type LayerTreeLayer ¶
type LayerTreeLayer struct {
LayerID LayerTreeLayerID `json:"layerId"` // The unique id for this layer.
ParentLayerID *LayerTreeLayerID `json:"parentLayerId,omitempty"` // The id of parent (not present for root).
BackendNodeID *DOMBackendNodeID `json:"backendNodeId,omitempty"` // The backend id for the node associated with this layer.
OffsetX float64 `json:"offsetX"` // Offset from parent layer, X coordinate.
OffsetY float64 `json:"offsetY"` // Offset from parent layer, Y coordinate.
Width float64 `json:"width"` // Layer width.
Height float64 `json:"height"` // Layer height.
Transform []float64 `json:"transform,omitempty"` // Transformation matrix for layer, default is identity matrix
AnchorX *float64 `json:"anchorX,omitempty"` // Transform anchor point X, absent if no transform specified
AnchorY *float64 `json:"anchorY,omitempty"` // Transform anchor point Y, absent if no transform specified
AnchorZ *float64 `json:"anchorZ,omitempty"` // Transform anchor point Z, absent if no transform specified
PaintCount int `json:"paintCount"` // Indicates how many time this layer has painted.
DrawsContent bool `json:"drawsContent"` // Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
Invisible *bool `json:"invisible,omitempty"` // Set if layer is not visible.
ScrollRects []LayerTreeScrollRect `json:"scrollRects,omitempty"` // Rectangles scrolling on main thread only.
}
LayerTreeLayer Information about a compositing layer.
type LayerTreePaintProfile ¶
type LayerTreePaintProfile []float64
LayerTreePaintProfile Array of timings, one per paint step.
type LayerTreePictureTile ¶
type LayerTreePictureTile struct {
X float64 `json:"x"` // Offset from owning layer left boundary
Y float64 `json:"y"` // Offset from owning layer top boundary
Picture []byte `json:"picture"` // Base64-encoded snapshot data.
}
LayerTreePictureTile Serialized fragment of layer picture along with its offset within the layer.
type LayerTreeScrollRect ¶
type LayerTreeScrollRect struct {
Rect DOMRect `json:"rect"` // Rectangle itself.
Type string `json:"type"` // Reason for rectangle to force scrolling on the main thread
}
LayerTreeScrollRect Rectangle where scrolling happens on the main thread.
type LayerTreeSnapshotID ¶
type LayerTreeSnapshotID string
LayerTreeSnapshotID Unique snapshot identifier.
type LogEntry ¶
type LogEntry struct {
Source string `json:"source"` // Log entry source.
Level string `json:"level"` // Log entry severity.
Text string `json:"text"` // Logged text.
Timestamp RuntimeTimestamp `json:"timestamp"` // Timestamp when this entry was added.
URL *string `json:"url,omitempty"` // URL of the resource if known.
LineNumber *int `json:"lineNumber,omitempty"` // Line number in the resource.
StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // JavaScript stack trace.
NetworkRequestID *NetworkRequestID `json:"networkRequestId,omitempty"` // Identifier of the network request associated with this entry.
WorkerID *string `json:"workerId,omitempty"` // Identifier of the worker associated with this entry.
}
LogEntry Log entry.
type LogViolationSetting ¶
type LogViolationSetting struct {
Name string `json:"name"` // Violation type.
Threshold float64 `json:"threshold"` // Time threshold to trigger upon.
}
LogViolationSetting Violation configuration setting.
type MemoryPressureLevel ¶
type MemoryPressureLevel int
MemoryPressureLevel Memory pressure level.
const ( MemoryPressureLevelNotSet MemoryPressureLevel = iota MemoryPressureLevelModerate MemoryPressureLevelCritical )
MemoryPressureLevel as enums.
func (MemoryPressureLevel) MarshalJSON ¶
func (e MemoryPressureLevel) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (MemoryPressureLevel) String ¶
func (e MemoryPressureLevel) String() string
func (*MemoryPressureLevel) UnmarshalJSON ¶
func (e *MemoryPressureLevel) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (MemoryPressureLevel) Valid ¶
func (e MemoryPressureLevel) Valid() bool
Valid returns true if enum is set.
type NetworkAuthChallenge ¶
type NetworkAuthChallenge struct {
Source *string `json:"source,omitempty"` // Source of the authentication challenge.
Origin string `json:"origin"` // Origin of the challenger.
Scheme string `json:"scheme"` // The authentication scheme used, such as basic or digest
Realm string `json:"realm"` // The realm of the challenge. May be empty.
}
NetworkAuthChallenge Authorization challenge for HTTP status code 401 or 407.
type NetworkAuthChallengeResponse ¶
type NetworkAuthChallengeResponse struct {
Response string `json:"response"` // The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
Username *string `json:"username,omitempty"` // The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
Password *string `json:"password,omitempty"` // The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
}
NetworkAuthChallengeResponse Response to an AuthChallenge.
type NetworkBlockedReason ¶
type NetworkBlockedReason int
NetworkBlockedReason The reason why request was blocked.
const ( NetworkBlockedReasonNotSet NetworkBlockedReason = iota NetworkBlockedReasonCsp NetworkBlockedReasonMixedContent NetworkBlockedReasonOrigin NetworkBlockedReasonInspector NetworkBlockedReasonSubresourceFilter NetworkBlockedReasonOther )
NetworkBlockedReason as enums.
func (NetworkBlockedReason) MarshalJSON ¶
func (e NetworkBlockedReason) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (NetworkBlockedReason) String ¶
func (e NetworkBlockedReason) String() string
func (*NetworkBlockedReason) UnmarshalJSON ¶
func (e *NetworkBlockedReason) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (NetworkBlockedReason) Valid ¶
func (e NetworkBlockedReason) Valid() bool
Valid returns true if enum is set.
type NetworkCachedResource ¶
type NetworkCachedResource struct {
URL string `json:"url"` // Resource URL. This is the url of the original network request.
Type PageResourceType `json:"type"` // Type of this resource.
Response *NetworkResponse `json:"response,omitempty"` // Cached response data.
BodySize float64 `json:"bodySize"` // Cached response body size.
}
NetworkCachedResource Information about the cached resource.
type NetworkConnectionType ¶
type NetworkConnectionType int
NetworkConnectionType Loading priority of a resource request.
const ( NetworkConnectionTypeNotSet NetworkConnectionType = iota NetworkConnectionTypeNone NetworkConnectionTypeCellular2g NetworkConnectionTypeCellular3g NetworkConnectionTypeCellular4g NetworkConnectionTypeBluetooth NetworkConnectionTypeEthernet NetworkConnectionTypeWifi NetworkConnectionTypeWimax NetworkConnectionTypeOther )
NetworkConnectionType as enums.
func (NetworkConnectionType) MarshalJSON ¶
func (e NetworkConnectionType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (NetworkConnectionType) String ¶
func (e NetworkConnectionType) String() string
func (*NetworkConnectionType) UnmarshalJSON ¶
func (e *NetworkConnectionType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (NetworkConnectionType) Valid ¶
func (e NetworkConnectionType) Valid() bool
Valid returns true if enum is set.
type NetworkCookie ¶
type NetworkCookie struct {
Name string `json:"name"` // Cookie name.
Value string `json:"value"` // Cookie value.
Domain string `json:"domain"` // Cookie domain.
Path string `json:"path"` // Cookie path.
Expires float64 `json:"expires"` // Cookie expiration date as the number of seconds since the UNIX epoch.
Size int `json:"size"` // Cookie size.
HTTPOnly bool `json:"httpOnly"` // True if cookie is http-only.
Secure bool `json:"secure"` // True if cookie is secure.
Session bool `json:"session"` // True in case of session cookie.
SameSite NetworkCookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type.
}
NetworkCookie Cookie object
type NetworkCookieSameSite ¶
type NetworkCookieSameSite int
NetworkCookieSameSite Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
const ( NetworkCookieSameSiteNotSet NetworkCookieSameSite = iota NetworkCookieSameSiteStrict NetworkCookieSameSiteLax )
NetworkCookieSameSite as enums.
func (NetworkCookieSameSite) MarshalJSON ¶
func (e NetworkCookieSameSite) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (NetworkCookieSameSite) String ¶
func (e NetworkCookieSameSite) String() string
func (*NetworkCookieSameSite) UnmarshalJSON ¶
func (e *NetworkCookieSameSite) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (NetworkCookieSameSite) Valid ¶
func (e NetworkCookieSameSite) Valid() bool
Valid returns true if enum is set.
type NetworkErrorReason ¶
type NetworkErrorReason int
NetworkErrorReason Network level fetch failure reason.
const ( NetworkErrorReasonNotSet NetworkErrorReason = iota NetworkErrorReasonFailed NetworkErrorReasonAborted NetworkErrorReasonTimedOut NetworkErrorReasonAccessDenied NetworkErrorReasonConnectionClosed NetworkErrorReasonConnectionReset NetworkErrorReasonConnectionRefused NetworkErrorReasonConnectionAborted NetworkErrorReasonConnectionFailed NetworkErrorReasonNameNotResolved NetworkErrorReasonInternetDisconnected NetworkErrorReasonAddressUnreachable )
NetworkErrorReason as enums.
func (NetworkErrorReason) MarshalJSON ¶
func (e NetworkErrorReason) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (NetworkErrorReason) String ¶
func (e NetworkErrorReason) String() string
func (*NetworkErrorReason) UnmarshalJSON ¶
func (e *NetworkErrorReason) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (NetworkErrorReason) Valid ¶
func (e NetworkErrorReason) Valid() bool
Valid returns true if enum is set.
type NetworkHeaders ¶
type NetworkHeaders []byte
NetworkHeaders Request / response headers as keys / values of JSON object.
func (NetworkHeaders) Map ¶
func (n NetworkHeaders) Map() (map[string]string, error)
Map returns the headers decoded into a map.
func (NetworkHeaders) MarshalJSON ¶
func (n NetworkHeaders) MarshalJSON() ([]byte, error)
MarshalJSON copies behavior of json.RawMessage.
func (*NetworkHeaders) UnmarshalJSON ¶
func (n *NetworkHeaders) UnmarshalJSON(data []byte) error
UnmarshalJSON copies behavior of json.RawMessage.
type NetworkInitiator ¶
type NetworkInitiator struct {
Type string `json:"type"` // Type of this initiator.
Stack *RuntimeStackTrace `json:"stack,omitempty"` // Initiator JavaScript stack trace, set for Script only.
URL *string `json:"url,omitempty"` // Initiator URL, set for Parser type or for Script type (when script is importing module).
LineNumber *float64 `json:"lineNumber,omitempty"` // Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).
}
NetworkInitiator Information about the request initiator.
type NetworkInterceptionID ¶
type NetworkInterceptionID string
NetworkInterceptionID Unique intercepted request identifier.
type NetworkRequest ¶
type NetworkRequest struct {
URL string `json:"url"` // Request URL.
Method string `json:"method"` // HTTP request method.
Headers NetworkHeaders `json:"headers"` // HTTP request headers.
PostData *string `json:"postData,omitempty"` // HTTP POST request data.
MixedContentType *string `json:"mixedContentType,omitempty"` // The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/
InitialPriority NetworkResourcePriority `json:"initialPriority"` // Priority of the resource request at the time request is sent.
ReferrerPolicy string `json:"referrerPolicy"` // The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
IsLinkPreload *bool `json:"isLinkPreload,omitempty"` // Whether is loaded via link preload.
}
NetworkRequest HTTP request data.
type NetworkResourcePriority ¶
type NetworkResourcePriority int
NetworkResourcePriority Loading priority of a resource request.
const ( NetworkResourcePriorityNotSet NetworkResourcePriority = iota NetworkResourcePriorityVeryLow NetworkResourcePriorityLow NetworkResourcePriorityMedium NetworkResourcePriorityHigh NetworkResourcePriorityVeryHigh )
NetworkResourcePriority as enums.
func (NetworkResourcePriority) MarshalJSON ¶
func (e NetworkResourcePriority) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (NetworkResourcePriority) String ¶
func (e NetworkResourcePriority) String() string
func (*NetworkResourcePriority) UnmarshalJSON ¶
func (e *NetworkResourcePriority) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (NetworkResourcePriority) Valid ¶
func (e NetworkResourcePriority) Valid() bool
Valid returns true if enum is set.
type NetworkResourceTiming ¶
type NetworkResourceTiming struct {
RequestTime float64 `json:"requestTime"` // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
ProxyStart float64 `json:"proxyStart"` // Started resolving proxy.
ProxyEnd float64 `json:"proxyEnd"` // Finished resolving proxy.
DNSStart float64 `json:"dnsStart"` // Started DNS address resolve.
DNSEnd float64 `json:"dnsEnd"` // Finished DNS address resolve.
ConnectStart float64 `json:"connectStart"` // Started connecting to the remote host.
ConnectEnd float64 `json:"connectEnd"` // Connected to the remote host.
SslStart float64 `json:"sslStart"` // Started SSL handshake.
SslEnd float64 `json:"sslEnd"` // Finished SSL handshake.
WorkerStart float64 `json:"workerStart"` // Started running ServiceWorker.
WorkerReady float64 `json:"workerReady"` // Finished Starting ServiceWorker.
SendStart float64 `json:"sendStart"` // Started sending request.
SendEnd float64 `json:"sendEnd"` // Finished sending request.
PushStart float64 `json:"pushStart"` // Time the server started pushing request.
PushEnd float64 `json:"pushEnd"` // Time the server finished pushing request.
ReceiveHeadersEnd float64 `json:"receiveHeadersEnd"` // Finished receiving response headers.
}
NetworkResourceTiming Timing information for the request.
type NetworkResponse ¶
type NetworkResponse struct {
URL string `json:"url"` // Response URL. This URL can be different from CachedResource.url in case of redirect.
Status float64 `json:"status"` // HTTP response status code.
StatusText string `json:"statusText"` // HTTP response status text.
Headers NetworkHeaders `json:"headers"` // HTTP response headers.
HeadersText *string `json:"headersText,omitempty"` // HTTP response headers text.
MimeType string `json:"mimeType"` // Resource mimeType as determined by the browser.
RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"` // Refined HTTP request headers that were actually transmitted over the network.
RequestHeadersText *string `json:"requestHeadersText,omitempty"` // HTTP request headers text.
ConnectionReused bool `json:"connectionReused"` // Specifies whether physical connection was actually reused for this request.
ConnectionID float64 `json:"connectionId"` // Physical connection id that was actually used for this request.
RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` // Remote IP address.
RemotePort *int `json:"remotePort,omitempty"` // Remote port.
FromDiskCache *bool `json:"fromDiskCache,omitempty"` // Specifies that the request was served from the disk cache.
FromServiceWorker *bool `json:"fromServiceWorker,omitempty"` // Specifies that the request was served from the ServiceWorker.
EncodedDataLength float64 `json:"encodedDataLength"` // Total number of bytes received for this request so far.
Timing *NetworkResourceTiming `json:"timing,omitempty"` // Timing information for the given request.
Protocol *string `json:"protocol,omitempty"` // Protocol used to fetch this request.
SecurityState SecurityState `json:"securityState"` // Security state of the request resource.
SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"` // Security details for the request.
}
NetworkResponse HTTP response data.
type NetworkSecurityDetails ¶
type NetworkSecurityDetails struct {
Protocol string `json:"protocol"` // Protocol name (e.g. "TLS 1.2" or "QUIC").
KeyExchange string `json:"keyExchange"` // Key Exchange used by the connection, or the empty string if not applicable.
KeyExchangeGroup *string `json:"keyExchangeGroup,omitempty"` // (EC)DH group used by the connection, if applicable.
Cipher string `json:"cipher"` // Cipher name.
Mac *string `json:"mac,omitempty"` // TLS MAC. Note that AEAD ciphers do not have separate MACs.
CertificateID SecurityCertificateID `json:"certificateId"` // Certificate ID value.
SubjectName string `json:"subjectName"` // Certificate subject name.
SanList []string `json:"sanList"` // Subject Alternative Name (SAN) DNS names and IP addresses.
Issuer string `json:"issuer"` // Name of the issuing CA.
ValidFrom NetworkTimestamp `json:"validFrom"` // Certificate valid from date.
ValidTo NetworkTimestamp `json:"validTo"` // Certificate valid to (expiration) date
SignedCertificateTimestampList []NetworkSignedCertificateTimestamp `json:"signedCertificateTimestampList"` // List of signed certificate timestamps (SCTs).
}
NetworkSecurityDetails Security details about a request.
type NetworkSignedCertificateTimestamp ¶
type NetworkSignedCertificateTimestamp struct {
Status string `json:"status"` // Validation status.
Origin string `json:"origin"` // Origin.
LogDescription string `json:"logDescription"` // Log name / description.
LogID string `json:"logId"` // Log ID.
Timestamp NetworkTimestamp `json:"timestamp"` // Issuance date.
HashAlgorithm string `json:"hashAlgorithm"` // Hash algorithm.
SignatureAlgorithm string `json:"signatureAlgorithm"` // Signature algorithm.
SignatureData string `json:"signatureData"` // Signature data.
}
NetworkSignedCertificateTimestamp Details of a signed certificate timestamp (SCT).
type NetworkTimestamp ¶
type NetworkTimestamp float64
NetworkTimestamp Number of seconds since epoch.
func (NetworkTimestamp) MarshalJSON ¶
func (t NetworkTimestamp) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler. Encodes to null if t is zero.
func (NetworkTimestamp) String ¶
func (t NetworkTimestamp) String() string
String calls (time.Time).String().
func (NetworkTimestamp) Time ¶
func (t NetworkTimestamp) Time() time.Time
Time parses the Unix time with millisecond accuracy.
func (*NetworkTimestamp) UnmarshalJSON ¶
func (t *NetworkTimestamp) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NetworkWebSocketFrame ¶
type NetworkWebSocketFrame struct {
Opcode float64 `json:"opcode"` // WebSocket frame opcode.
Mask bool `json:"mask"` // WebSocke frame mask.
PayloadData string `json:"payloadData"` // WebSocke frame payload data.
}
NetworkWebSocketFrame WebSocket frame data.
type NetworkWebSocketRequest ¶
type NetworkWebSocketRequest struct {
Headers NetworkHeaders `json:"headers"` // HTTP request headers.
}
NetworkWebSocketRequest WebSocket request data.
type NetworkWebSocketResponse ¶
type NetworkWebSocketResponse struct {
Status float64 `json:"status"` // HTTP response status code.
StatusText string `json:"statusText"` // HTTP response status text.
Headers NetworkHeaders `json:"headers"` // HTTP response headers.
HeadersText *string `json:"headersText,omitempty"` // HTTP response headers text.
RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"` // HTTP request headers.
RequestHeadersText *string `json:"requestHeadersText,omitempty"` // HTTP request headers text.
}
NetworkWebSocketResponse WebSocket response data.
type OverlayHighlightConfig ¶
type OverlayHighlightConfig struct {
ShowInfo *bool `json:"showInfo,omitempty"` // Whether the node info tooltip should be shown (default: false).
ShowRulers *bool `json:"showRulers,omitempty"` // Whether the rulers should be shown (default: false).
ShowExtensionLines *bool `json:"showExtensionLines,omitempty"` // Whether the extension lines from node to the rulers should be shown (default: false).
DisplayAsMaterial *bool `json:"displayAsMaterial,omitempty"` //
ContentColor *DOMRGBA `json:"contentColor,omitempty"` // The content box highlight fill color (default: transparent).
PaddingColor *DOMRGBA `json:"paddingColor,omitempty"` // The padding highlight fill color (default: transparent).
BorderColor *DOMRGBA `json:"borderColor,omitempty"` // The border highlight fill color (default: transparent).
MarginColor *DOMRGBA `json:"marginColor,omitempty"` // The margin highlight fill color (default: transparent).
EventTargetColor *DOMRGBA `json:"eventTargetColor,omitempty"` // The event target element highlight fill color (default: transparent).
ShapeColor *DOMRGBA `json:"shapeColor,omitempty"` // The shape outside fill color (default: transparent).
ShapeMarginColor *DOMRGBA `json:"shapeMarginColor,omitempty"` // The shape margin fill color (default: transparent).
SelectorList *string `json:"selectorList,omitempty"` // Selectors to highlight relevant nodes.
}
OverlayHighlightConfig Configuration data for the highlighting of page elements.
type OverlayInspectMode ¶
type OverlayInspectMode int
OverlayInspectMode
const ( OverlayInspectModeNotSet OverlayInspectMode = iota OverlayInspectModeSearchForNode OverlayInspectModeSearchForUAShadowDOM OverlayInspectModeNone )
OverlayInspectMode as enums.
func (OverlayInspectMode) MarshalJSON ¶
func (e OverlayInspectMode) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (OverlayInspectMode) String ¶
func (e OverlayInspectMode) String() string
func (*OverlayInspectMode) UnmarshalJSON ¶
func (e *OverlayInspectMode) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (OverlayInspectMode) Valid ¶
func (e OverlayInspectMode) Valid() bool
Valid returns true if enum is set.
type PageAppManifestError ¶
type PageAppManifestError struct {
Message string `json:"message"` // Error message.
Critical int `json:"critical"` // If criticial, this is a non-recoverable parse error.
Line int `json:"line"` // Error line.
Column int `json:"column"` // Error column.
}
PageAppManifestError Error while paring app manifest.
type PageDialogType ¶
type PageDialogType int
PageDialogType Javascript dialog type.
const ( PageDialogTypeNotSet PageDialogType = iota PageDialogTypeAlert PageDialogTypeConfirm PageDialogTypePrompt PageDialogTypeBeforeunload )
PageDialogType as enums.
func (PageDialogType) MarshalJSON ¶
func (e PageDialogType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (PageDialogType) String ¶
func (e PageDialogType) String() string
func (*PageDialogType) UnmarshalJSON ¶
func (e *PageDialogType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (PageDialogType) Valid ¶
func (e PageDialogType) Valid() bool
Valid returns true if enum is set.
type PageFrame ¶
type PageFrame struct {
ID PageFrameID `json:"id"` // Frame unique identifier.
ParentID *PageFrameID `json:"parentId,omitempty"` // Parent frame identifier.
LoaderID NetworkLoaderID `json:"loaderId"` // Identifier of the loader associated with this frame.
Name *string `json:"name,omitempty"` // Frame's name as specified in the tag.
URL string `json:"url"` // Frame document's URL.
SecurityOrigin string `json:"securityOrigin"` // Frame document's security origin.
MimeType string `json:"mimeType"` // Frame document's mimeType as determined by the browser.
}
PageFrame Information about the Frame on the page.
type PageFrameID ¶
type PageFrameID string
PageFrameID Unique frame identifier.
func (*PageFrameID) UnmarshalJSON ¶
func (p *PageFrameID) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes the PageFrameID from either string or float.
type PageFrameResource ¶
type PageFrameResource struct {
URL string `json:"url"` // Resource URL.
Type PageResourceType `json:"type"` // Type of this resource.
MimeType string `json:"mimeType"` // Resource mimeType as determined by the browser.
LastModified NetworkTimestamp `json:"lastModified,omitempty"` // last-modified timestamp as reported by server.
ContentSize *float64 `json:"contentSize,omitempty"` // Resource content size.
Failed *bool `json:"failed,omitempty"` // True if the resource failed to load.
Canceled *bool `json:"canceled,omitempty"` // True if the resource was canceled during loading.
}
PageFrameResource Information about the Resource on the page.
type PageFrameResourceTree ¶
type PageFrameResourceTree struct {
Frame PageFrame `json:"frame"` // Frame information for this tree item.
ChildFrames []PageFrameResourceTree `json:"childFrames,omitempty"` // Child frames.
Resources []PageFrameResource `json:"resources"` // Information about frame resources.
}
PageFrameResourceTree Information about the Frame hierarchy along with their cached resources.
type PageLayoutViewport ¶
type PageLayoutViewport struct {
PageX int `json:"pageX"` // Horizontal offset relative to the document (CSS pixels).
PageY int `json:"pageY"` // Vertical offset relative to the document (CSS pixels).
ClientWidth int `json:"clientWidth"` // Width (CSS pixels), excludes scrollbar if present.
ClientHeight int `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present.
}
PageLayoutViewport Layout viewport position and dimensions.
type PageNavigationEntry ¶
type PageNavigationEntry struct {
}
PageNavigationEntry Navigation history entry.
type PageNavigationResponse ¶
type PageNavigationResponse int
PageNavigationResponse Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.
const ( )
PageNavigationResponse as enums.
func (PageNavigationResponse) MarshalJSON ¶
func (e PageNavigationResponse) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (PageNavigationResponse) String ¶
func (e PageNavigationResponse) String() string
func (*PageNavigationResponse) UnmarshalJSON ¶
func (e *PageNavigationResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (PageNavigationResponse) Valid ¶
func (e PageNavigationResponse) Valid() bool
Valid returns true if enum is set.
type PageResourceType ¶
type PageResourceType int
PageResourceType Resource type as it was perceived by the rendering engine.
const ( PageResourceTypeNotSet PageResourceType = iota PageResourceTypeDocument PageResourceTypeStylesheet PageResourceTypeImage PageResourceTypeMedia PageResourceTypeFont PageResourceTypeScript PageResourceTypeTextTrack PageResourceTypeXHR PageResourceTypeFetch PageResourceTypeEventSource PageResourceTypeWebSocket PageResourceTypeManifest PageResourceTypeOther )
PageResourceType as enums.
func (PageResourceType) MarshalJSON ¶
func (e PageResourceType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (PageResourceType) String ¶
func (e PageResourceType) String() string
func (*PageResourceType) UnmarshalJSON ¶
func (e *PageResourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (PageResourceType) Valid ¶
func (e PageResourceType) Valid() bool
Valid returns true if enum is set.
type PageScreencastFrameMetadata ¶
type PageScreencastFrameMetadata struct {
OffsetTop float64 `json:"offsetTop"` // Top offset in DIP.
PageScaleFactor float64 `json:"pageScaleFactor"` // Page scale factor.
DeviceWidth float64 `json:"deviceWidth"` // Device screen width in DIP.
DeviceHeight float64 `json:"deviceHeight"` // Device screen height in DIP.
ScrollOffsetX float64 `json:"scrollOffsetX"` // Position of horizontal scroll in CSS pixels.
ScrollOffsetY float64 `json:"scrollOffsetY"` // Position of vertical scroll in CSS pixels.
Timestamp Timestamp `json:"timestamp,omitempty"` // Frame swap timestamp.
}
PageScreencastFrameMetadata Screencast frame metadata.
type PageScriptIdentifier ¶
type PageScriptIdentifier string
PageScriptIdentifier Unique script identifier.
type PageTransitionType ¶
type PageTransitionType int
PageTransitionType Transition type.
const ( PageTransitionTypeNotSet PageTransitionType = iota PageTransitionTypeLink PageTransitionTypeTyped PageTransitionTypeAutoBookmark PageTransitionTypeAutoSubframe PageTransitionTypeManualSubframe PageTransitionTypeGenerated PageTransitionTypeAutoToplevel PageTransitionTypeFormSubmit PageTransitionTypeReload PageTransitionTypeKeyword PageTransitionTypeKeywordGenerated PageTransitionTypeOther )
PageTransitionType as enums.
func (PageTransitionType) MarshalJSON ¶
func (e PageTransitionType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (PageTransitionType) String ¶
func (e PageTransitionType) String() string
func (*PageTransitionType) UnmarshalJSON ¶
func (e *PageTransitionType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (PageTransitionType) Valid ¶
func (e PageTransitionType) Valid() bool
Valid returns true if enum is set.
type PageVisualViewport ¶
type PageVisualViewport struct {
OffsetX float64 `json:"offsetX"` // Horizontal offset relative to the layout viewport (CSS pixels).
OffsetY float64 `json:"offsetY"` // Vertical offset relative to the layout viewport (CSS pixels).
PageX float64 `json:"pageX"` // Horizontal offset relative to the document (CSS pixels).
PageY float64 `json:"pageY"` // Vertical offset relative to the document (CSS pixels).
ClientWidth float64 `json:"clientWidth"` // Width (CSS pixels), excludes scrollbar if present.
ClientHeight float64 `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present.
Scale float64 `json:"scale"` // Scale relative to the ideal viewport (size at width=device-width).
}
PageVisualViewport Visual viewport position, dimensions, and scale.
type ProfilerCoverageRange ¶
type ProfilerCoverageRange struct {
StartOffset int `json:"startOffset"` // JavaScript script source offset for the range start.
EndOffset int `json:"endOffset"` // JavaScript script source offset for the range end.
Count int `json:"count"` // Collected execution count of the source range.
}
ProfilerCoverageRange Coverage data for a source range.
type ProfilerFunctionCoverage ¶
type ProfilerFunctionCoverage struct {
FunctionName string `json:"functionName"` // JavaScript function name.
Ranges []ProfilerCoverageRange `json:"ranges"` // Source ranges inside the function with coverage data.
IsBlockCoverage bool `json:"isBlockCoverage"` // Whether coverage data for this function has block granularity.
}
ProfilerFunctionCoverage Coverage data for a JavaScript function.
type ProfilerPositionTickInfo ¶
type ProfilerPositionTickInfo struct {
Line int `json:"line"` // Source line number (1-based).
Ticks int `json:"ticks"` // Number of samples attributed to the source line.
}
ProfilerPositionTickInfo Specifies a number of samples attributed to a certain source position.
type ProfilerProfile ¶
type ProfilerProfile struct {
Nodes []ProfilerProfileNode `json:"nodes"` // The list of profile nodes. First item is the root node.
StartTime float64 `json:"startTime"` // Profiling start timestamp in microseconds.
EndTime float64 `json:"endTime"` // Profiling end timestamp in microseconds.
Samples []int `json:"samples,omitempty"` // Ids of samples top nodes.
TimeDeltas []int `json:"timeDeltas,omitempty"` // Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
}
ProfilerProfile Profile.
type ProfilerProfileNode ¶
type ProfilerProfileNode struct {
ID int `json:"id"` // Unique id of the node.
CallFrame RuntimeCallFrame `json:"callFrame"` // Function location.
HitCount *int `json:"hitCount,omitempty"` // Number of samples where this node was on top of the call stack.
Children []int `json:"children,omitempty"` // Child node ids.
DeoptReason *string `json:"deoptReason,omitempty"` // The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
PositionTicks []ProfilerPositionTickInfo `json:"positionTicks,omitempty"` // An array of source position ticks.
}
ProfilerProfileNode Profile node. Holds callsite information, execution statistics and child nodes.
type ProfilerScriptCoverage ¶
type ProfilerScriptCoverage struct {
ScriptID RuntimeScriptID `json:"scriptId"` // JavaScript script id.
URL string `json:"url"` // JavaScript script name or url.
Functions []ProfilerFunctionCoverage `json:"functions"` // Functions contained in the script that has coverage data.
}
ProfilerScriptCoverage Coverage data for a JavaScript script.
type RuntimeCallArgument ¶
type RuntimeCallArgument struct {
Value json.RawMessage `json:"value,omitempty"` // Primitive value.
UnserializableValue RuntimeUnserializableValue `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified.
ObjectID *RuntimeRemoteObjectID `json:"objectId,omitempty"` // Remote object handle.
}
RuntimeCallArgument Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.
type RuntimeCallFrame ¶
type RuntimeCallFrame struct {
FunctionName string `json:"functionName"` // JavaScript function name.
ScriptID RuntimeScriptID `json:"scriptId"` // JavaScript script id.
URL string `json:"url"` // JavaScript script name or url.
LineNumber int `json:"lineNumber"` // JavaScript script line number (0-based).
ColumnNumber int `json:"columnNumber"` // JavaScript script column number (0-based).
}
RuntimeCallFrame Stack entry for runtime errors and assertions.
type RuntimeCustomPreview ¶
type RuntimeCustomPreview struct {
Header string `json:"header"` //
HasBody bool `json:"hasBody"` //
FormatterObjectID RuntimeRemoteObjectID `json:"formatterObjectId"` //
BindRemoteObjectFunctionID RuntimeRemoteObjectID `json:"bindRemoteObjectFunctionId"` //
ConfigObjectID *RuntimeRemoteObjectID `json:"configObjectId,omitempty"` //
}
RuntimeCustomPreview
type RuntimeEntryPreview ¶
type RuntimeEntryPreview struct {
Key *RuntimeObjectPreview `json:"key,omitempty"` // Preview of the key. Specified for map-like collection entries.
Value RuntimeObjectPreview `json:"value"` // Preview of the value.
}
RuntimeEntryPreview
func (RuntimeEntryPreview) String ¶
func (r RuntimeEntryPreview) String() string
String returns a human readable string of the entry preview.
type RuntimeExceptionDetails ¶
type RuntimeExceptionDetails struct {
ExceptionID int `json:"exceptionId"` // Exception id.
Text string `json:"text"` // Exception text, which should be used together with exception object when available.
LineNumber int `json:"lineNumber"` // Line number of the exception location (0-based).
ColumnNumber int `json:"columnNumber"` // Column number of the exception location (0-based).
ScriptID *RuntimeScriptID `json:"scriptId,omitempty"` // Script ID of the exception location.
URL *string `json:"url,omitempty"` // URL of the exception location, to be used when the script was not reported.
StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // JavaScript stack trace if available.
Exception *RuntimeRemoteObject `json:"exception,omitempty"` // Exception object if available.
ExecutionContextID *RuntimeExecutionContextID `json:"executionContextId,omitempty"` // Identifier of the context where exception happened.
}
RuntimeExceptionDetails Detailed information about exception (or error) that was thrown during script compilation or execution.
func (RuntimeExceptionDetails) Error ¶
func (r RuntimeExceptionDetails) Error() string
Error implements error for RuntimeExceptionDetails.
type RuntimeExecutionContextDescription ¶
type RuntimeExecutionContextDescription struct {
ID RuntimeExecutionContextID `json:"id"` // Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
Origin string `json:"origin"` // Execution context origin.
Name string `json:"name"` // Human readable name describing given context.
AuxData json.RawMessage `json:"auxData,omitempty"` // Embedder-specific auxiliary data.
}
RuntimeExecutionContextDescription Description of an isolated world.
type RuntimeExecutionContextID ¶
type RuntimeExecutionContextID int
RuntimeExecutionContextID Id of an execution context.
type RuntimeInternalPropertyDescriptor ¶
type RuntimeInternalPropertyDescriptor struct {
Name string `json:"name"` // Conventional property name.
Value *RuntimeRemoteObject `json:"value,omitempty"` // The value associated with the property.
}
RuntimeInternalPropertyDescriptor Object internal property descriptor. This property isn't normally visible in JavaScript code.
type RuntimeObjectPreview ¶
type RuntimeObjectPreview struct {
Type string `json:"type"` // Object type.
Subtype *string `json:"subtype,omitempty"` // Object subtype hint. Specified for object type values only.
Description *string `json:"description,omitempty"` // String representation of the object.
Overflow bool `json:"overflow"` // True iff some of the properties or entries of the original object did not fit.
Properties []RuntimePropertyPreview `json:"properties"` // List of the properties.
Entries []RuntimeEntryPreview `json:"entries,omitempty"` // List of the entries. Specified for map and set subtype values only.
}
RuntimeObjectPreview Object containing abbreviated remote object value.
func (RuntimeObjectPreview) String ¶
func (r RuntimeObjectPreview) String() string
String returns a human readable string of the object preview.
type RuntimePropertyDescriptor ¶
type RuntimePropertyDescriptor struct {
Name string `json:"name"` // Property name or symbol description.
Value *RuntimeRemoteObject `json:"value,omitempty"` // The value associated with the property.
Writable *bool `json:"writable,omitempty"` // True if the value associated with the property may be changed (data descriptors only).
Get *RuntimeRemoteObject `json:"get,omitempty"` // A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).
Set *RuntimeRemoteObject `json:"set,omitempty"` // A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).
Configurable bool `json:"configurable"` // True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
Enumerable bool `json:"enumerable"` // True if this property shows up during enumeration of the properties on the corresponding object.
WasThrown *bool `json:"wasThrown,omitempty"` // True if the result was thrown during the evaluation.
IsOwn *bool `json:"isOwn,omitempty"` // True if the property is owned for the object.
Symbol *RuntimeRemoteObject `json:"symbol,omitempty"` // Property symbol object, if the property is of the symbol type.
}
RuntimePropertyDescriptor Object property descriptor.
type RuntimePropertyPreview ¶
type RuntimePropertyPreview struct {
Name string `json:"name"` // Property name.
Type string `json:"type"` // Object type. Accessor means that the property itself is an accessor property.
Value *string `json:"value,omitempty"` // User-friendly property value string.
ValuePreview *RuntimeObjectPreview `json:"valuePreview,omitempty"` // Nested value preview.
Subtype *string `json:"subtype,omitempty"` // Object subtype hint. Specified for object type values only.
}
RuntimePropertyPreview
func (RuntimePropertyPreview) String ¶
func (r RuntimePropertyPreview) String() string
String returns a human readable string of the property.
type RuntimeRemoteObject ¶
type RuntimeRemoteObject struct {
Type string `json:"type"` // Object type.
Subtype *string `json:"subtype,omitempty"` // Object subtype hint. Specified for object type values only.
ClassName *string `json:"className,omitempty"` // Object class (constructor) name. Specified for object type values only.
Value json.RawMessage `json:"value,omitempty"` // Remote object value in case of primitive values or JSON values (if it was requested).
UnserializableValue RuntimeUnserializableValue `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified does not have value, but gets this property.
Description *string `json:"description,omitempty"` // String representation of the object.
ObjectID *RuntimeRemoteObjectID `json:"objectId,omitempty"` // Unique object identifier (for non-primitive values).
Preview *RuntimeObjectPreview `json:"preview,omitempty"` // Preview containing abbreviated property values. Specified for object type values only.
CustomPreview *RuntimeCustomPreview `json:"customPreview,omitempty"` //
}
RuntimeRemoteObject Mirror object referencing original JavaScript object.
func (RuntimeRemoteObject) String ¶
func (r RuntimeRemoteObject) String() string
String returns a human readable string of a runtime object.
type RuntimeRemoteObjectID ¶
type RuntimeRemoteObjectID string
RuntimeRemoteObjectID Unique object identifier.
type RuntimeStackTrace ¶
type RuntimeStackTrace struct {
Description *string `json:"description,omitempty"` // String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
CallFrames []RuntimeCallFrame `json:"callFrames"` // JavaScript function name.
Parent *RuntimeStackTrace `json:"parent,omitempty"` // Asynchronous JavaScript stack trace that preceded this stack, if available.
PromiseCreationFrame *RuntimeCallFrame `json:"promiseCreationFrame,omitempty"` // Creation frame of the Promise which produced the next synchronous trace when resolved, if available.
}
RuntimeStackTrace Call frames for assertions or error messages.
type RuntimeTimestamp ¶
type RuntimeTimestamp float64
RuntimeTimestamp Number of milliseconds since epoch.
func (RuntimeTimestamp) MarshalJSON ¶
func (t RuntimeTimestamp) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler. Encodes to null if t is zero.
func (RuntimeTimestamp) String ¶
func (t RuntimeTimestamp) String() string
String calls (time.Time).String().
func (RuntimeTimestamp) Time ¶
func (t RuntimeTimestamp) Time() time.Time
Time parses the Unix time with millisecond accuracy.
func (*RuntimeTimestamp) UnmarshalJSON ¶
func (t *RuntimeTimestamp) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RuntimeUnserializableValue ¶
type RuntimeUnserializableValue int
RuntimeUnserializableValue Primitive value which cannot be JSON-stringified.
const ( RuntimeUnserializableValueNotSet RuntimeUnserializableValue = iota RuntimeUnserializableValueInfinity RuntimeUnserializableValueNaN RuntimeUnserializableValueNegativeInfinity RuntimeUnserializableValueNegative0 )
RuntimeUnserializableValue as enums.
func (RuntimeUnserializableValue) MarshalJSON ¶
func (e RuntimeUnserializableValue) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (RuntimeUnserializableValue) String ¶
func (e RuntimeUnserializableValue) String() string
func (*RuntimeUnserializableValue) UnmarshalJSON ¶
func (e *RuntimeUnserializableValue) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (RuntimeUnserializableValue) Valid ¶
func (e RuntimeUnserializableValue) Valid() bool
Valid returns true if enum is set.
type SchemaDomain ¶
type SchemaDomain struct {
Name string `json:"name"` // Domain name.
Version string `json:"version"` // Domain version.
}
SchemaDomain Description of the protocol domain.
type SecurityCertificateErrorAction ¶
type SecurityCertificateErrorAction int
SecurityCertificateErrorAction The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.
const ( SecurityCertificateErrorActionNotSet SecurityCertificateErrorAction = iota SecurityCertificateErrorActionContinue SecurityCertificateErrorActionCancel )
SecurityCertificateErrorAction as enums.
func (SecurityCertificateErrorAction) MarshalJSON ¶
func (e SecurityCertificateErrorAction) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (SecurityCertificateErrorAction) String ¶
func (e SecurityCertificateErrorAction) String() string
func (*SecurityCertificateErrorAction) UnmarshalJSON ¶
func (e *SecurityCertificateErrorAction) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (SecurityCertificateErrorAction) Valid ¶
func (e SecurityCertificateErrorAction) Valid() bool
Valid returns true if enum is set.
type SecurityCertificateID ¶
type SecurityCertificateID int
SecurityCertificateID An internal certificate ID value.
type SecurityInsecureContentStatus ¶
type SecurityInsecureContentStatus struct {
RanMixedContent bool `json:"ranMixedContent"` // True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts.
DisplayedMixedContent bool `json:"displayedMixedContent"` // True if the page was loaded over HTTPS and displayed mixed (HTTP) content such as images.
ContainedMixedForm bool `json:"containedMixedForm"` // True if the page was loaded over HTTPS and contained a form targeting an insecure url.
RanContentWithCertErrors bool `json:"ranContentWithCertErrors"` // True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors.
DisplayedContentWithCertErrors bool `json:"displayedContentWithCertErrors"` // True if the page was loaded over HTTPS without certificate errors, and displayed content such as images that were loaded with certificate errors.
RanInsecureContentStyle SecurityState `json:"ranInsecureContentStyle"` // Security state representing a page that ran insecure content.
DisplayedInsecureContentStyle SecurityState `json:"displayedInsecureContentStyle"` // Security state representing a page that displayed insecure content.
}
SecurityInsecureContentStatus Information about insecure content on the page.
type SecurityState ¶
type SecurityState int
SecurityState The security level of a page or resource.
const ( SecurityStateNotSet SecurityState = iota SecurityStateUnknown SecurityStateNeutral SecurityStateInsecure SecurityStateWarning SecurityStateSecure SecurityStateInfo )
SecurityState as enums.
func (SecurityState) MarshalJSON ¶
func (e SecurityState) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (SecurityState) String ¶
func (e SecurityState) String() string
func (*SecurityState) UnmarshalJSON ¶
func (e *SecurityState) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
type SecurityStateExplanation ¶
type SecurityStateExplanation struct {
SecurityState SecurityState `json:"securityState"` // Security state representing the severity of the factor being explained.
Summary string `json:"summary"` // Short phrase describing the type of factor.
Description string `json:"description"` // Full text explanation of the factor.
HasCertificate bool `json:"hasCertificate"` // True if the page has a certificate.
}
SecurityStateExplanation An explanation of an factor contributing to the security state.
type ServiceWorkerErrorMessage ¶
type ServiceWorkerErrorMessage struct {
ErrorMessage string `json:"errorMessage"` //
RegistrationID string `json:"registrationId"` //
VersionID string `json:"versionId"` //
SourceURL string `json:"sourceURL"` //
LineNumber int `json:"lineNumber"` //
ColumnNumber int `json:"columnNumber"` //
}
ServiceWorkerErrorMessage ServiceWorker error message.
type ServiceWorkerRegistration ¶
type ServiceWorkerRegistration struct {
RegistrationID string `json:"registrationId"` //
ScopeURL string `json:"scopeURL"` //
IsDeleted bool `json:"isDeleted"` //
}
ServiceWorkerRegistration ServiceWorker registration.
type ServiceWorkerVersion ¶
type ServiceWorkerVersion struct {
VersionID string `json:"versionId"` //
RegistrationID string `json:"registrationId"` //
ScriptURL string `json:"scriptURL"` //
RunningStatus ServiceWorkerVersionRunningStatus `json:"runningStatus"` //
Status ServiceWorkerVersionStatus `json:"status"` //
ScriptLastModified *float64 `json:"scriptLastModified,omitempty"` // The Last-Modified header value of the main script.
ScriptResponseTime *float64 `json:"scriptResponseTime,omitempty"` // The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.
ControlledClients []TargetID `json:"controlledClients,omitempty"` //
TargetID *TargetID `json:"targetId,omitempty"` //
}
ServiceWorkerVersion ServiceWorker version.
type ServiceWorkerVersionRunningStatus ¶
type ServiceWorkerVersionRunningStatus int
ServiceWorkerVersionRunningStatus
const ( ServiceWorkerVersionRunningStatusNotSet ServiceWorkerVersionRunningStatus = iota ServiceWorkerVersionRunningStatusStopped ServiceWorkerVersionRunningStatusStarting ServiceWorkerVersionRunningStatusRunning ServiceWorkerVersionRunningStatusStopping )
ServiceWorkerVersionRunningStatus as enums.
func (ServiceWorkerVersionRunningStatus) MarshalJSON ¶
func (e ServiceWorkerVersionRunningStatus) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (ServiceWorkerVersionRunningStatus) String ¶
func (e ServiceWorkerVersionRunningStatus) String() string
func (*ServiceWorkerVersionRunningStatus) UnmarshalJSON ¶
func (e *ServiceWorkerVersionRunningStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (ServiceWorkerVersionRunningStatus) Valid ¶
func (e ServiceWorkerVersionRunningStatus) Valid() bool
Valid returns true if enum is set.
type ServiceWorkerVersionStatus ¶
type ServiceWorkerVersionStatus int
ServiceWorkerVersionStatus
const ( ServiceWorkerVersionStatusNotSet ServiceWorkerVersionStatus = iota ServiceWorkerVersionStatusNew ServiceWorkerVersionStatusInstalling ServiceWorkerVersionStatusInstalled ServiceWorkerVersionStatusActivating ServiceWorkerVersionStatusActivated ServiceWorkerVersionStatusRedundant )
ServiceWorkerVersionStatus as enums.
func (ServiceWorkerVersionStatus) MarshalJSON ¶
func (e ServiceWorkerVersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (ServiceWorkerVersionStatus) String ¶
func (e ServiceWorkerVersionStatus) String() string
func (*ServiceWorkerVersionStatus) UnmarshalJSON ¶
func (e *ServiceWorkerVersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
func (ServiceWorkerVersionStatus) Valid ¶
func (e ServiceWorkerVersionStatus) Valid() bool
Valid returns true if enum is set.
type StorageType ¶
type StorageType int
StorageType Enum of possible storage types.
const ( StorageTypeNotSet StorageType = iota StorageTypeAppcache StorageTypeCookies StorageTypeFileSystems StorageTypeIndexeddb StorageTypeLocalStorage StorageTypeShaderCache StorageTypeWebsql StorageTypeServiceWorkers StorageTypeCacheStorage StorageTypeAll StorageTypeOther )
StorageType as enums.
func (StorageType) MarshalJSON ¶
func (e StorageType) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (StorageType) String ¶
func (e StorageType) String() string
func (*StorageType) UnmarshalJSON ¶
func (e *StorageType) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
type StorageUsageForType ¶
type StorageUsageForType struct {
StorageType StorageType `json:"storageType"` // Name of storage type.
Usage float64 `json:"usage"` // Storage usage (bytes).
}
StorageUsageForType Usage for a storage type.
type SystemInfoGPUDevice ¶
type SystemInfoGPUDevice struct {
VendorID float64 `json:"vendorId"` // PCI ID of the GPU vendor, if available; 0 otherwise.
DeviceID float64 `json:"deviceId"` // PCI ID of the GPU device, if available; 0 otherwise.
VendorString string `json:"vendorString"` // String description of the GPU vendor, if the PCI ID is not available.
DeviceString string `json:"deviceString"` // String description of the GPU device, if the PCI ID is not available.
}
SystemInfoGPUDevice Describes a single graphics processor (GPU).
type SystemInfoGPUInfo ¶
type SystemInfoGPUInfo struct {
Devices []SystemInfoGPUDevice `json:"devices"` // The graphics devices on the system. Element 0 is the primary GPU.
AuxAttributes json.RawMessage `json:"auxAttributes,omitempty"` // An optional dictionary of additional GPU related attributes.
FeatureStatus json.RawMessage `json:"featureStatus,omitempty"` // An optional dictionary of graphics features and their status.
DriverBugWorkarounds []string `json:"driverBugWorkarounds"` // An optional array of GPU driver bug workarounds.
}
SystemInfoGPUInfo Provides information about the GPU(s) on the system.
type TargetInfo ¶
type TargetInfo struct {
TargetID TargetID `json:"targetId"` //
Type string `json:"type"` //
Title string `json:"title"` //
URL string `json:"url"` //
Attached bool `json:"attached"` // Whether the target has an attached client.
}
TargetInfo
type TargetRemoteLocation ¶
TargetRemoteLocation
type Timestamp ¶
type Timestamp float64
Timestamp represents a timestamp (since epoch).
func (Timestamp) MarshalJSON ¶
MarshalJSON implements json.Marshaler. Encodes to null if t is zero.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type TracingMemoryDumpConfig ¶
type TracingMemoryDumpConfig []byte
TracingMemoryDumpConfig Configuration for memory dump. Used only when "memory-infra" category is enabled.
func (TracingMemoryDumpConfig) MarshalJSON ¶
func (t TracingMemoryDumpConfig) MarshalJSON() ([]byte, error)
MarshalJSON copies behavior of json.RawMessage.
func (*TracingMemoryDumpConfig) UnmarshalJSON ¶
func (t *TracingMemoryDumpConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON copies behavior of json.RawMessage.
type TracingTraceConfig ¶
type TracingTraceConfig struct {
RecordMode *string `json:"recordMode,omitempty"` // Controls how the trace buffer stores data.
EnableSampling *bool `json:"enableSampling,omitempty"` // Turns on JavaScript stack sampling.
EnableSystrace *bool `json:"enableSystrace,omitempty"` // Turns on system tracing.
EnableArgumentFilter *bool `json:"enableArgumentFilter,omitempty"` // Turns on argument filter.
IncludedCategories []string `json:"includedCategories,omitempty"` // Included category filters.
ExcludedCategories []string `json:"excludedCategories,omitempty"` // Excluded category filters.
SyntheticDelays []string `json:"syntheticDelays,omitempty"` // Configuration to synthesize the delays in tracing.
MemoryDumpConfig TracingMemoryDumpConfig `json:"memoryDumpConfig,omitempty"` // Configuration for memory dump triggers. Used only when "memory-infra" category is enabled.
}
TracingTraceConfig