runtime

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CommandRuntimeAwaitPromise                    = "Runtime.awaitPromise"
	CommandRuntimeCallFunctionOn                  = "Runtime.callFunctionOn"
	CommandRuntimeCompileScript                   = "Runtime.compileScript"
	CommandRuntimeDisable                         = "Runtime.disable"
	CommandRuntimeDiscardConsoleEntries           = "Runtime.discardConsoleEntries"
	CommandRuntimeEnable                          = "Runtime.enable"
	CommandRuntimeEvaluate                        = "Runtime.evaluate"
	CommandRuntimeGetIsolateId                    = "Runtime.getIsolateId"
	CommandRuntimeGetHeapUsage                    = "Runtime.getHeapUsage"
	CommandRuntimeGetProperties                   = "Runtime.getProperties"
	CommandRuntimeGlobalLexicalScopeNames         = "Runtime.globalLexicalScopeNames"
	CommandRuntimeQueryObjects                    = "Runtime.queryObjects"
	CommandRuntimeReleaseObject                   = "Runtime.releaseObject"
	CommandRuntimeReleaseObjectGroup              = "Runtime.releaseObjectGroup"
	CommandRuntimeRunIfWaitingForDebugger         = "Runtime.runIfWaitingForDebugger"
	CommandRuntimeRunScript                       = "Runtime.runScript"
	CommandRuntimeSetAsyncCallStackDepth          = "Runtime.setAsyncCallStackDepth"
	CommandRuntimeSetCustomObjectFormatterEnabled = "Runtime.setCustomObjectFormatterEnabled"
	CommandRuntimeSetMaxCallStackSizeToCapture    = "Runtime.setMaxCallStackSizeToCapture"
	CommandRuntimeTerminateExecution              = "Runtime.terminateExecution"
	CommandRuntimeAddBinding                      = "Runtime.addBinding"
	CommandRuntimeRemoveBinding                   = "Runtime.removeBinding"
)
View Source
const (
	EventRuntimeBindingCalled             = "Runtime.bindingCalled"
	EventRuntimeConsoleAPICalled          = "Runtime.consoleAPICalled"
	EventRuntimeExceptionRevoked          = "Runtime.exceptionRevoked"
	EventRuntimeExceptionThrown           = "Runtime.exceptionThrown"
	EventRuntimeExecutionContextCreated   = "Runtime.executionContextCreated"
	EventRuntimeExecutionContextDestroyed = "Runtime.executionContextDestroyed"
	EventRuntimeExecutionContextsCleared  = "Runtime.executionContextsCleared"
	EventRuntimeInspectRequested          = "Runtime.inspectRequested"
)

Variables

Functions

func GetEventReply

func GetEventReply(event string) (json.Unmarshaler, bool)

Types

type AddBindingArgs

type AddBindingArgs struct {
	Name               string             `json:"name"`                         // No description.
	ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // No description.
}

AddBindingArgs represents the arguments for AddBinding in the Runtime domain.

func (*AddBindingArgs) MarshalJSON

func (a *AddBindingArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for AddBinding in the Runtime domain.

func (*AddBindingArgs) UnmarshalJSON

func (a *AddBindingArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AddBinding in the Runtime domain.

type AddBindingReply

type AddBindingReply struct {
}

AddBindingReply represents the return values for AddBinding in the Runtime domain.

func (*AddBindingReply) GetFrameID

func (a *AddBindingReply) GetFrameID() string

AddBindingReply returns the FrameID value for AddBinding in the Runtime domain.

func (*AddBindingReply) MatchFrameID

func (a *AddBindingReply) MatchFrameID(frameID string, m []byte) (bool, error)

AddBindingReply returns whether or not the FrameID matches the reply value for AddBinding in the Runtime domain.

func (*AddBindingReply) UnmarshalJSON

func (a *AddBindingReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AddBinding in the Runtime domain.

type AwaitPromiseArgs

type AwaitPromiseArgs struct {
	PromiseObjectID shared.RemoteObjectID `json:"promiseObjectId"`           // Identifier of the promise.
	ReturnByValue   bool                  `json:"returnByValue,omitempty"`   // Whether the result is expected to be a JSON object that should be sent by value.
	GeneratePreview bool                  `json:"generatePreview,omitempty"` // Whether preview should be generated for the result.
}

AwaitPromiseArgs represents the arguments for AwaitPromise in the Runtime domain.

func (*AwaitPromiseArgs) MarshalJSON

func (a *AwaitPromiseArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for AwaitPromise in the Runtime domain.

func (*AwaitPromiseArgs) UnmarshalJSON

func (a *AwaitPromiseArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AwaitPromise in the Runtime domain.

type AwaitPromiseReply

type AwaitPromiseReply struct {
	Result           RemoteObject      `json:"result"`                     // Promise result. Will contain rejected value if promise was rejected.
	ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details if stack strace is available.
}

AwaitPromiseReply represents the return values for AwaitPromise in the Runtime domain.

func (*AwaitPromiseReply) GetFrameID

func (a *AwaitPromiseReply) GetFrameID() string

AwaitPromiseReply returns the FrameID value for AwaitPromise in the Runtime domain.

func (*AwaitPromiseReply) MatchFrameID

func (a *AwaitPromiseReply) MatchFrameID(frameID string, m []byte) (bool, error)

AwaitPromiseReply returns whether or not the FrameID matches the reply value for AwaitPromise in the Runtime domain.

func (*AwaitPromiseReply) UnmarshalJSON

func (a *AwaitPromiseReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AwaitPromise in the Runtime domain.

type BindingCalledReply

type BindingCalledReply struct {
	Name               string             `json:"name"`               // No description.
	Payload            string             `json:"payload"`            // No description.
	ExecutionContextID ExecutionContextID `json:"executionContextId"` // Identifier of the context where the call was made.
}

BindingCalledReply is the reply for BindingCalled events.

func (*BindingCalledReply) GetFrameID

func (a *BindingCalledReply) GetFrameID() string

BindingCalledReply returns the FrameID for BindingCalled in the Runtime domain.

func (*BindingCalledReply) MatchFrameID

func (a *BindingCalledReply) MatchFrameID(frameID string, m []byte) (bool, error)

BindingCalledReply returns whether or not the FrameID matches the reply value for BindingCalled in the Runtime domain.

func (*BindingCalledReply) UnmarshalJSON

func (a *BindingCalledReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for BindingCalled in the Runtime domain.

type CallArgument

type CallArgument struct {
	Value               *json.RawMessage      `json:"value,omitempty"`               // Primitive value or serializable javascript object.
	UnserializableValue *UnserializableValue  `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified.
	ObjectID            shared.RemoteObjectID `json:"objectId,omitempty"`            // Remote object handle.
}

CallArgument Represents function call argument. Either remote object id `objectId`, primitive `value`, unserializable primitive value or neither of (for undefined) them should be specified.

type CallFrame

type CallFrame struct {
	FunctionName string   `json:"functionName"` // JavaScript function name.
	ScriptID     ScriptID `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).
}

CallFrame Stack entry for runtime errors and assertions.

type CallFunctionOnArgs

type CallFunctionOnArgs struct {
	FunctionDeclaration string                `json:"functionDeclaration"`     // Declaration of the function to call.
	ObjectID            shared.RemoteObjectID `json:"objectId,omitempty"`      // Identifier of the object to call function on. Either objectId or executionContextId should be specified.
	Arguments           *[]CallArgument       `json:"arguments,omitempty"`     // Call arguments. All call arguments must belong to the same JavaScript world as the target object.
	Silent              bool                  `json:"silent,omitempty"`        // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.
	ReturnByValue       bool                  `json:"returnByValue,omitempty"` // Whether the result is expected to be a JSON object which should be sent by value.
	// GeneratePreview Whether preview should be generated for the result.
	//
	// Note: This property is experimental.
	GeneratePreview    bool               `json:"generatePreview,omitempty"`
	UserGesture        bool               `json:"userGesture,omitempty"`        // Whether execution should be treated as initiated by user in the UI.
	AwaitPromise       bool               `json:"awaitPromise,omitempty"`       // Whether execution should `await` for resulting value and return once awaited promise is resolved.
	ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
	ObjectGroup        string             `json:"objectGroup,omitempty"`        // Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
}

CallFunctionOnArgs represents the arguments for CallFunctionOn in the Runtime domain.

func (*CallFunctionOnArgs) MarshalJSON

func (a *CallFunctionOnArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for CallFunctionOn in the Runtime domain.

func (*CallFunctionOnArgs) UnmarshalJSON

func (a *CallFunctionOnArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CallFunctionOn in the Runtime domain.

type CallFunctionOnReply

type CallFunctionOnReply struct {
	Result           RemoteObject      `json:"result"`                     // Call result.
	ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

CallFunctionOnReply represents the return values for CallFunctionOn in the Runtime domain.

func (*CallFunctionOnReply) GetFrameID

func (a *CallFunctionOnReply) GetFrameID() string

CallFunctionOnReply returns the FrameID value for CallFunctionOn in the Runtime domain.

func (*CallFunctionOnReply) MatchFrameID

func (a *CallFunctionOnReply) MatchFrameID(frameID string, m []byte) (bool, error)

CallFunctionOnReply returns whether or not the FrameID matches the reply value for CallFunctionOn in the Runtime domain.

func (*CallFunctionOnReply) UnmarshalJSON

func (a *CallFunctionOnReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CallFunctionOn in the Runtime domain.

type CompileScriptArgs

type CompileScriptArgs struct {
	Expression         string             `json:"expression"`                   // Expression to compile.
	SourceURL          string             `json:"sourceURL"`                    // Source url to be set for the script.
	PersistScript      bool               `json:"persistScript"`                // Specifies whether the compiled script should be persisted.
	ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
}

CompileScriptArgs represents the arguments for CompileScript in the Runtime domain.

func (*CompileScriptArgs) MarshalJSON

func (a *CompileScriptArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for CompileScript in the Runtime domain.

func (*CompileScriptArgs) UnmarshalJSON

func (a *CompileScriptArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CompileScript in the Runtime domain.

type CompileScriptReply

type CompileScriptReply struct {
	ScriptID         ScriptID          `json:"scriptId,omitempty"`         // Id of the script.
	ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

CompileScriptReply represents the return values for CompileScript in the Runtime domain.

func (*CompileScriptReply) GetFrameID

func (a *CompileScriptReply) GetFrameID() string

CompileScriptReply returns the FrameID value for CompileScript in the Runtime domain.

func (*CompileScriptReply) MatchFrameID

func (a *CompileScriptReply) MatchFrameID(frameID string, m []byte) (bool, error)

CompileScriptReply returns whether or not the FrameID matches the reply value for CompileScript in the Runtime domain.

func (*CompileScriptReply) UnmarshalJSON

func (a *CompileScriptReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CompileScript in the Runtime domain.

type ConsoleAPICalledReply

type ConsoleAPICalledReply struct {
	// Type Type of the call.
	//
	// Values: "log", "debug", "info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd", "count", "timeEnd".
	Type               string             `json:"type"`
	Args               []RemoteObject     `json:"args"`                 // Call arguments.
	ExecutionContextID ExecutionContextID `json:"executionContextId"`   // Identifier of the context where the call was made.
	Timestamp          Timestamp          `json:"timestamp"`            // Call timestamp.
	StackTrace         *StackTrace        `json:"stackTrace,omitempty"` // Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
	// Context Console context descriptor for calls on non-default console
	// context (not console.*): 'anonymous#unique-logger-id' for call on
	// unnamed context, 'name#unique-logger-id' for call on named context.
	//
	// Note: This property is experimental.
	Context string `json:"context,omitempty"`
}

ConsoleAPICalledReply is the reply for ConsoleAPICalled events.

func (*ConsoleAPICalledReply) GetFrameID

func (a *ConsoleAPICalledReply) GetFrameID() string

ConsoleAPICalledReply returns the FrameID for ConsoleAPICalled in the Runtime domain.

func (*ConsoleAPICalledReply) MatchFrameID

func (a *ConsoleAPICalledReply) MatchFrameID(frameID string, m []byte) (bool, error)

ConsoleAPICalledReply returns whether or not the FrameID matches the reply value for ConsoleAPICalled in the Runtime domain.

func (*ConsoleAPICalledReply) UnmarshalJSON

func (a *ConsoleAPICalledReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ConsoleAPICalled in the Runtime domain.

type CustomPreview

type CustomPreview struct {
	Header       string                `json:"header"`                 // The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
	BodyGetterID shared.RemoteObjectID `json:"bodyGetterId,omitempty"` // If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.
}

CustomPreview

Note: This type is experimental.

type DisableArgs

type DisableArgs struct {
}

DisableArgs represents the arguments for Disable in the Runtime domain.

func (*DisableArgs) MarshalJSON

func (a *DisableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Disable in the Runtime domain.

func (*DisableArgs) UnmarshalJSON

func (a *DisableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the Runtime domain.

type DisableReply

type DisableReply struct {
}

DisableReply represents the return values for Disable in the Runtime domain.

func (*DisableReply) GetFrameID

func (a *DisableReply) GetFrameID() string

DisableReply returns the FrameID value for Disable in the Runtime domain.

func (*DisableReply) MatchFrameID

func (a *DisableReply) MatchFrameID(frameID string, m []byte) (bool, error)

DisableReply returns whether or not the FrameID matches the reply value for Disable in the Runtime domain.

func (*DisableReply) UnmarshalJSON

func (a *DisableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the Runtime domain.

type DiscardConsoleEntriesArgs

type DiscardConsoleEntriesArgs struct {
}

DiscardConsoleEntriesArgs represents the arguments for DiscardConsoleEntries in the Runtime domain.

func (*DiscardConsoleEntriesArgs) MarshalJSON

func (a *DiscardConsoleEntriesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for DiscardConsoleEntries in the Runtime domain.

func (*DiscardConsoleEntriesArgs) UnmarshalJSON

func (a *DiscardConsoleEntriesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DiscardConsoleEntries in the Runtime domain.

type DiscardConsoleEntriesReply

type DiscardConsoleEntriesReply struct {
}

DiscardConsoleEntriesReply represents the return values for DiscardConsoleEntries in the Runtime domain.

func (*DiscardConsoleEntriesReply) GetFrameID

func (a *DiscardConsoleEntriesReply) GetFrameID() string

DiscardConsoleEntriesReply returns the FrameID value for DiscardConsoleEntries in the Runtime domain.

func (*DiscardConsoleEntriesReply) MatchFrameID

func (a *DiscardConsoleEntriesReply) MatchFrameID(frameID string, m []byte) (bool, error)

DiscardConsoleEntriesReply returns whether or not the FrameID matches the reply value for DiscardConsoleEntries in the Runtime domain.

func (*DiscardConsoleEntriesReply) UnmarshalJSON

func (a *DiscardConsoleEntriesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DiscardConsoleEntries in the Runtime domain.

type EnableArgs

type EnableArgs struct {
}

EnableArgs represents the arguments for Enable in the Runtime domain.

func (*EnableArgs) MarshalJSON

func (a *EnableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Enable in the Runtime domain.

func (*EnableArgs) UnmarshalJSON

func (a *EnableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the Runtime domain.

type EnableReply

type EnableReply struct {
}

EnableReply represents the return values for Enable in the Runtime domain.

func (*EnableReply) GetFrameID

func (a *EnableReply) GetFrameID() string

EnableReply returns the FrameID value for Enable in the Runtime domain.

func (*EnableReply) MatchFrameID

func (a *EnableReply) MatchFrameID(frameID string, m []byte) (bool, error)

EnableReply returns whether or not the FrameID matches the reply value for Enable in the Runtime domain.

func (*EnableReply) UnmarshalJSON

func (a *EnableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the Runtime domain.

type EntryPreview

type EntryPreview struct {
	Key   *ObjectPreview `json:"key,omitempty"` // Preview of the key. Specified for map-like collection entries.
	Value ObjectPreview  `json:"value"`         // Preview of the value.
}

EntryPreview

Note: This type is experimental.

type EvaluateArgs

type EvaluateArgs struct {
	Expression            string             `json:"expression"`                      // Expression to evaluate.
	ObjectGroup           string             `json:"objectGroup,omitempty"`           // Symbolic group name that can be used to release multiple objects.
	IncludeCommandLineAPI bool               `json:"includeCommandLineAPI,omitempty"` // Determines whether Command Line API should be available during the evaluation.
	Silent                bool               `json:"silent,omitempty"`                // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.
	ContextID             ExecutionContextID `json:"contextId,omitempty"`             // Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
	ReturnByValue         bool               `json:"returnByValue,omitempty"`         // Whether the result is expected to be a JSON object that should be sent by value.
	// GeneratePreview Whether preview should be generated for the result.
	//
	// Note: This property is experimental.
	GeneratePreview bool `json:"generatePreview,omitempty"`
	UserGesture     bool `json:"userGesture,omitempty"`  // Whether execution should be treated as initiated by user in the UI.
	AwaitPromise    bool `json:"awaitPromise,omitempty"` // Whether execution should `await` for resulting value and return once awaited promise is resolved.
	// ThrowOnSideEffect Whether to throw an exception if side effect
	// cannot be ruled out during evaluation. This implies `disableBreaks`
	// below.
	//
	// Note: This property is experimental.
	ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"`
	// Timeout Terminate execution after timing out (number of
	// milliseconds).
	//
	// Note: This property is experimental.
	Timeout *TimeDelta `json:"timeout,omitempty"`
	// DisableBreaks Disable breakpoints during execution.
	//
	// Note: This property is experimental.
	DisableBreaks bool `json:"disableBreaks,omitempty"`
	// ReplMode Setting this flag to true enables `let` re-declaration and
	// top-level `await`. Note that `let` variables can only be re-declared
	// if they originate from `replMode` themselves.
	//
	// Note: This property is experimental.
	ReplMode bool `json:"replMode,omitempty"`
}

EvaluateArgs represents the arguments for Evaluate in the Runtime domain.

func (*EvaluateArgs) MarshalJSON

func (a *EvaluateArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Evaluate in the Runtime domain.

func (*EvaluateArgs) UnmarshalJSON

func (a *EvaluateArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Evaluate in the Runtime domain.

type EvaluateReply

type EvaluateReply struct {
	Result           RemoteObject      `json:"result"`                     // Evaluation result.
	ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

EvaluateReply represents the return values for Evaluate in the Runtime domain.

func (*EvaluateReply) GetFrameID

func (a *EvaluateReply) GetFrameID() string

EvaluateReply returns the FrameID value for Evaluate in the Runtime domain.

func (*EvaluateReply) MatchFrameID

func (a *EvaluateReply) MatchFrameID(frameID string, m []byte) (bool, error)

EvaluateReply returns whether or not the FrameID matches the reply value for Evaluate in the Runtime domain.

func (*EvaluateReply) UnmarshalJSON

func (a *EvaluateReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Evaluate in the Runtime domain.

type ExceptionDetails

type ExceptionDetails 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           ScriptID           `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         *StackTrace        `json:"stackTrace,omitempty"`         // JavaScript stack trace if available.
	Exception          *RemoteObject      `json:"exception,omitempty"`          // Exception object if available.
	ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Identifier of the context where exception happened.
}

ExceptionDetails Detailed information about exception (or error) that was thrown during script compilation or execution.

type ExceptionRevokedReply

type ExceptionRevokedReply struct {
	Reason      string `json:"reason"`      // Reason describing why exception was revoked.
	ExceptionID int    `json:"exceptionId"` // The id of revoked exception, as reported in `exceptionThrown`.
}

ExceptionRevokedReply is the reply for ExceptionRevoked events.

func (*ExceptionRevokedReply) GetFrameID

func (a *ExceptionRevokedReply) GetFrameID() string

ExceptionRevokedReply returns the FrameID for ExceptionRevoked in the Runtime domain.

func (*ExceptionRevokedReply) MatchFrameID

func (a *ExceptionRevokedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ExceptionRevokedReply returns whether or not the FrameID matches the reply value for ExceptionRevoked in the Runtime domain.

func (*ExceptionRevokedReply) UnmarshalJSON

func (a *ExceptionRevokedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ExceptionRevoked in the Runtime domain.

type ExceptionThrownReply

type ExceptionThrownReply struct {
	Timestamp        Timestamp        `json:"timestamp"`        // Timestamp of the exception.
	ExceptionDetails ExceptionDetails `json:"exceptionDetails"` // No description.
}

ExceptionThrownReply is the reply for ExceptionThrown events.

func (*ExceptionThrownReply) GetFrameID

func (a *ExceptionThrownReply) GetFrameID() string

ExceptionThrownReply returns the FrameID for ExceptionThrown in the Runtime domain.

func (*ExceptionThrownReply) MatchFrameID

func (a *ExceptionThrownReply) MatchFrameID(frameID string, m []byte) (bool, error)

ExceptionThrownReply returns whether or not the FrameID matches the reply value for ExceptionThrown in the Runtime domain.

func (*ExceptionThrownReply) UnmarshalJSON

func (a *ExceptionThrownReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ExceptionThrown in the Runtime domain.

type ExecutionContextCreatedReply

type ExecutionContextCreatedReply struct {
	Context ExecutionContextDescription `json:"context"` // A newly created execution context.
}

ExecutionContextCreatedReply is the reply for ExecutionContextCreated events.

func (*ExecutionContextCreatedReply) GetFrameID

func (a *ExecutionContextCreatedReply) GetFrameID() string

ExecutionContextCreatedReply returns the FrameID for ExecutionContextCreated in the Runtime domain.

func (*ExecutionContextCreatedReply) MatchFrameID

func (a *ExecutionContextCreatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ExecutionContextCreatedReply returns whether or not the FrameID matches the reply value for ExecutionContextCreated in the Runtime domain.

func (*ExecutionContextCreatedReply) UnmarshalJSON

func (a *ExecutionContextCreatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ExecutionContextCreated in the Runtime domain.

type ExecutionContextDescription

type ExecutionContextDescription struct {
	ID      ExecutionContextID `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.
}

ExecutionContextDescription Description of an isolated world.

type ExecutionContextDestroyedReply

type ExecutionContextDestroyedReply struct {
	ExecutionContextID ExecutionContextID `json:"executionContextId"` // Id of the destroyed context
}

ExecutionContextDestroyedReply is the reply for ExecutionContextDestroyed events.

func (*ExecutionContextDestroyedReply) GetFrameID

func (a *ExecutionContextDestroyedReply) GetFrameID() string

ExecutionContextDestroyedReply returns the FrameID for ExecutionContextDestroyed in the Runtime domain.

func (*ExecutionContextDestroyedReply) MatchFrameID

func (a *ExecutionContextDestroyedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ExecutionContextDestroyedReply returns whether or not the FrameID matches the reply value for ExecutionContextDestroyed in the Runtime domain.

func (*ExecutionContextDestroyedReply) UnmarshalJSON

func (a *ExecutionContextDestroyedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ExecutionContextDestroyed in the Runtime domain.

type ExecutionContextID

type ExecutionContextID int

ExecutionContextID Id of an execution context.

type ExecutionContextsClearedReply

type ExecutionContextsClearedReply struct {
}

ExecutionContextsClearedReply is the reply for ExecutionContextsCleared events.

func (*ExecutionContextsClearedReply) GetFrameID

func (a *ExecutionContextsClearedReply) GetFrameID() string

ExecutionContextsClearedReply returns the FrameID for ExecutionContextsCleared in the Runtime domain.

func (*ExecutionContextsClearedReply) MatchFrameID

func (a *ExecutionContextsClearedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ExecutionContextsClearedReply returns whether or not the FrameID matches the reply value for ExecutionContextsCleared in the Runtime domain.

func (*ExecutionContextsClearedReply) UnmarshalJSON

func (a *ExecutionContextsClearedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ExecutionContextsCleared in the Runtime domain.

type GetHeapUsageArgs

type GetHeapUsageArgs struct {
}

GetHeapUsageArgs represents the arguments for GetHeapUsage in the Runtime domain.

func (*GetHeapUsageArgs) MarshalJSON

func (a *GetHeapUsageArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetHeapUsage in the Runtime domain.

func (*GetHeapUsageArgs) UnmarshalJSON

func (a *GetHeapUsageArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetHeapUsage in the Runtime domain.

type GetHeapUsageReply

type GetHeapUsageReply struct {
	UsedSize  float64 `json:"usedSize"`  // Used heap size in bytes.
	TotalSize float64 `json:"totalSize"` // Allocated heap size in bytes.
}

GetHeapUsageReply represents the return values for GetHeapUsage in the Runtime domain.

func (*GetHeapUsageReply) GetFrameID

func (a *GetHeapUsageReply) GetFrameID() string

GetHeapUsageReply returns the FrameID value for GetHeapUsage in the Runtime domain.

func (*GetHeapUsageReply) MatchFrameID

func (a *GetHeapUsageReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetHeapUsageReply returns whether or not the FrameID matches the reply value for GetHeapUsage in the Runtime domain.

func (*GetHeapUsageReply) UnmarshalJSON

func (a *GetHeapUsageReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetHeapUsage in the Runtime domain.

type GetIsolateIDArgs

type GetIsolateIDArgs struct {
}

GetIsolateIDArgs represents the arguments for GetIsolateID in the Runtime domain.

func (*GetIsolateIDArgs) MarshalJSON

func (a *GetIsolateIDArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetIsolateID in the Runtime domain.

func (*GetIsolateIDArgs) UnmarshalJSON

func (a *GetIsolateIDArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetIsolateID in the Runtime domain.

type GetIsolateIDReply

type GetIsolateIDReply struct {
	ID string `json:"id"` // The isolate id.
}

GetIsolateIDReply represents the return values for GetIsolateID in the Runtime domain.

func (*GetIsolateIDReply) GetFrameID

func (a *GetIsolateIDReply) GetFrameID() string

GetIsolateIDReply returns the FrameID value for GetIsolateID in the Runtime domain.

func (*GetIsolateIDReply) MatchFrameID

func (a *GetIsolateIDReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetIsolateIDReply returns whether or not the FrameID matches the reply value for GetIsolateID in the Runtime domain.

func (*GetIsolateIDReply) UnmarshalJSON

func (a *GetIsolateIDReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetIsolateID in the Runtime domain.

type GetPropertiesArgs

type GetPropertiesArgs struct {
	ObjectID      shared.RemoteObjectID `json:"objectId"`                // Identifier of the object to return properties for.
	OwnProperties bool                  `json:"ownProperties,omitempty"` // If true, returns properties belonging only to the element itself, not to its prototype chain.
	// AccessorPropertiesOnly If true, returns accessor properties (with
	// getter/setter) only; internal properties are not returned either.
	//
	// Note: This property is experimental.
	AccessorPropertiesOnly bool `json:"accessorPropertiesOnly,omitempty"`
	// GeneratePreview Whether preview should be generated for the
	// results.
	//
	// Note: This property is experimental.
	GeneratePreview bool `json:"generatePreview,omitempty"`
}

GetPropertiesArgs represents the arguments for GetProperties in the Runtime domain.

func (*GetPropertiesArgs) MarshalJSON

func (a *GetPropertiesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetProperties in the Runtime domain.

func (*GetPropertiesArgs) UnmarshalJSON

func (a *GetPropertiesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetProperties in the Runtime domain.

type GetPropertiesReply

type GetPropertiesReply struct {
	Result             []PropertyDescriptor          `json:"result"`                       // Object properties.
	InternalProperties *[]InternalPropertyDescriptor `json:"internalProperties,omitempty"` // Internal object properties (only of the element itself).
	// PrivateProperties Object private properties.
	//
	// Note: This property is experimental.
	PrivateProperties *[]PrivatePropertyDescriptor `json:"privateProperties,omitempty"`
	ExceptionDetails  *ExceptionDetails            `json:"exceptionDetails,omitempty"` // Exception details.
}

GetPropertiesReply represents the return values for GetProperties in the Runtime domain.

func (*GetPropertiesReply) GetFrameID

func (a *GetPropertiesReply) GetFrameID() string

GetPropertiesReply returns the FrameID value for GetProperties in the Runtime domain.

func (*GetPropertiesReply) MatchFrameID

func (a *GetPropertiesReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetPropertiesReply returns whether or not the FrameID matches the reply value for GetProperties in the Runtime domain.

func (*GetPropertiesReply) UnmarshalJSON

func (a *GetPropertiesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetProperties in the Runtime domain.

type GlobalLexicalScopeNamesArgs

type GlobalLexicalScopeNamesArgs struct {
	ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Specifies in which execution context to lookup global scope variables.
}

GlobalLexicalScopeNamesArgs represents the arguments for GlobalLexicalScopeNames in the Runtime domain.

func (*GlobalLexicalScopeNamesArgs) MarshalJSON

func (a *GlobalLexicalScopeNamesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GlobalLexicalScopeNames in the Runtime domain.

func (*GlobalLexicalScopeNamesArgs) UnmarshalJSON

func (a *GlobalLexicalScopeNamesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GlobalLexicalScopeNames in the Runtime domain.

type GlobalLexicalScopeNamesReply

type GlobalLexicalScopeNamesReply struct {
	Names []string `json:"names"` // No description.
}

GlobalLexicalScopeNamesReply represents the return values for GlobalLexicalScopeNames in the Runtime domain.

func (*GlobalLexicalScopeNamesReply) GetFrameID

func (a *GlobalLexicalScopeNamesReply) GetFrameID() string

GlobalLexicalScopeNamesReply returns the FrameID value for GlobalLexicalScopeNames in the Runtime domain.

func (*GlobalLexicalScopeNamesReply) MatchFrameID

func (a *GlobalLexicalScopeNamesReply) MatchFrameID(frameID string, m []byte) (bool, error)

GlobalLexicalScopeNamesReply returns whether or not the FrameID matches the reply value for GlobalLexicalScopeNames in the Runtime domain.

func (*GlobalLexicalScopeNamesReply) UnmarshalJSON

func (a *GlobalLexicalScopeNamesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GlobalLexicalScopeNames in the Runtime domain.

type InspectRequestedReply

type InspectRequestedReply struct {
	Object RemoteObject    `json:"object"` // No description.
	Hints  json.RawMessage `json:"hints"`  // No description.
}

InspectRequestedReply is the reply for InspectRequested events.

func (*InspectRequestedReply) GetFrameID

func (a *InspectRequestedReply) GetFrameID() string

InspectRequestedReply returns the FrameID for InspectRequested in the Runtime domain.

func (*InspectRequestedReply) MatchFrameID

func (a *InspectRequestedReply) MatchFrameID(frameID string, m []byte) (bool, error)

InspectRequestedReply returns whether or not the FrameID matches the reply value for InspectRequested in the Runtime domain.

func (*InspectRequestedReply) UnmarshalJSON

func (a *InspectRequestedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for InspectRequested in the Runtime domain.

type InternalPropertyDescriptor

type InternalPropertyDescriptor struct {
	Name  string        `json:"name"`            // Conventional property name.
	Value *RemoteObject `json:"value,omitempty"` // The value associated with the property.
}

InternalPropertyDescriptor Object internal property descriptor. This property isn't normally visible in JavaScript code.

type ObjectPreview

type ObjectPreview struct {
	// Type Object type.
	//
	// Values: "object", "function", "undefined", "string", "number", "boolean", "symbol", "bigint".
	Type string `json:"type"`
	// Subtype Object subtype hint. Specified for `object` type values
	// only.
	//
	// Values: "array", "null", "node", "regexp", "date", "map", "set", "weakmap", "weakset", "iterator", "generator", "error".
	Subtype     string            `json:"subtype,omitempty"`
	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  []PropertyPreview `json:"properties"`            // List of the properties.
	Entries     *[]EntryPreview   `json:"entries,omitempty"`     // List of the entries. Specified for `map` and `set` subtype values only.
}

ObjectPreview Object containing abbreviated remote object value.

Note: This type is experimental.

type PrivatePropertyDescriptor

type PrivatePropertyDescriptor struct {
	Name  string        `json:"name"`            // Private property name.
	Value *RemoteObject `json:"value,omitempty"` // The value associated with the private property.
	Get   *RemoteObject `json:"get,omitempty"`   // A function which serves as a getter for the private property, or `undefined` if there is no getter (accessor descriptors only).
	Set   *RemoteObject `json:"set,omitempty"`   // A function which serves as a setter for the private property, or `undefined` if there is no setter (accessor descriptors only).
}

PrivatePropertyDescriptor Object private field descriptor.

Note: This type is experimental.

type PropertyDescriptor

type PropertyDescriptor struct {
	Name         string        `json:"name"`                // Property name or symbol description.
	Value        *RemoteObject `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          *RemoteObject `json:"get,omitempty"`       // A function which serves as a getter for the property, or `undefined` if there is no getter (accessor descriptors only).
	Set          *RemoteObject `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       *RemoteObject `json:"symbol,omitempty"`    // Property symbol object, if the property is of the `symbol` type.
}

PropertyDescriptor Object property descriptor.

type PropertyPreview

type PropertyPreview struct {
	Name string `json:"name"` // Property name.
	// Type Object type. Accessor means that the property itself is an
	// accessor property.
	//
	// Values: "object", "function", "undefined", "string", "number", "boolean", "symbol", "accessor", "bigint".
	Type         string         `json:"type"`
	Value        string         `json:"value,omitempty"`        // User-friendly property value string.
	ValuePreview *ObjectPreview `json:"valuePreview,omitempty"` // Nested value preview.
	// Subtype Object subtype hint. Specified for `object` type values
	// only.
	//
	// Values: "array", "null", "node", "regexp", "date", "map", "set", "weakmap", "weakset", "iterator", "generator", "error".
	Subtype string `json:"subtype,omitempty"`
}

PropertyPreview

Note: This type is experimental.

type QueryObjectsArgs

type QueryObjectsArgs struct {
	PrototypeObjectID shared.RemoteObjectID `json:"prototypeObjectId"`     // Identifier of the prototype to return objects for.
	ObjectGroup       string                `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release the results.
}

QueryObjectsArgs represents the arguments for QueryObjects in the Runtime domain.

func (*QueryObjectsArgs) MarshalJSON

func (a *QueryObjectsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for QueryObjects in the Runtime domain.

func (*QueryObjectsArgs) UnmarshalJSON

func (a *QueryObjectsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for QueryObjects in the Runtime domain.

type QueryObjectsReply

type QueryObjectsReply struct {
	Objects RemoteObject `json:"objects"` // Array with objects.
}

QueryObjectsReply represents the return values for QueryObjects in the Runtime domain.

func (*QueryObjectsReply) GetFrameID

func (a *QueryObjectsReply) GetFrameID() string

QueryObjectsReply returns the FrameID value for QueryObjects in the Runtime domain.

func (*QueryObjectsReply) MatchFrameID

func (a *QueryObjectsReply) MatchFrameID(frameID string, m []byte) (bool, error)

QueryObjectsReply returns whether or not the FrameID matches the reply value for QueryObjects in the Runtime domain.

func (*QueryObjectsReply) UnmarshalJSON

func (a *QueryObjectsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for QueryObjects in the Runtime domain.

type ReleaseObjectArgs

type ReleaseObjectArgs struct {
	ObjectID shared.RemoteObjectID `json:"objectId"` // Identifier of the object to release.
}

ReleaseObjectArgs represents the arguments for ReleaseObject in the Runtime domain.

func (*ReleaseObjectArgs) MarshalJSON

func (a *ReleaseObjectArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ReleaseObject in the Runtime domain.

func (*ReleaseObjectArgs) UnmarshalJSON

func (a *ReleaseObjectArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ReleaseObject in the Runtime domain.

type ReleaseObjectGroupArgs

type ReleaseObjectGroupArgs struct {
	ObjectGroup string `json:"objectGroup"` // Symbolic object group name.
}

ReleaseObjectGroupArgs represents the arguments for ReleaseObjectGroup in the Runtime domain.

func (*ReleaseObjectGroupArgs) MarshalJSON

func (a *ReleaseObjectGroupArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ReleaseObjectGroup in the Runtime domain.

func (*ReleaseObjectGroupArgs) UnmarshalJSON

func (a *ReleaseObjectGroupArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ReleaseObjectGroup in the Runtime domain.

type ReleaseObjectGroupReply

type ReleaseObjectGroupReply struct {
}

ReleaseObjectGroupReply represents the return values for ReleaseObjectGroup in the Runtime domain.

func (*ReleaseObjectGroupReply) GetFrameID

func (a *ReleaseObjectGroupReply) GetFrameID() string

ReleaseObjectGroupReply returns the FrameID value for ReleaseObjectGroup in the Runtime domain.

func (*ReleaseObjectGroupReply) MatchFrameID

func (a *ReleaseObjectGroupReply) MatchFrameID(frameID string, m []byte) (bool, error)

ReleaseObjectGroupReply returns whether or not the FrameID matches the reply value for ReleaseObjectGroup in the Runtime domain.

func (*ReleaseObjectGroupReply) UnmarshalJSON

func (a *ReleaseObjectGroupReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ReleaseObjectGroup in the Runtime domain.

type ReleaseObjectReply

type ReleaseObjectReply struct {
}

ReleaseObjectReply represents the return values for ReleaseObject in the Runtime domain.

func (*ReleaseObjectReply) GetFrameID

func (a *ReleaseObjectReply) GetFrameID() string

ReleaseObjectReply returns the FrameID value for ReleaseObject in the Runtime domain.

func (*ReleaseObjectReply) MatchFrameID

func (a *ReleaseObjectReply) MatchFrameID(frameID string, m []byte) (bool, error)

ReleaseObjectReply returns whether or not the FrameID matches the reply value for ReleaseObject in the Runtime domain.

func (*ReleaseObjectReply) UnmarshalJSON

func (a *ReleaseObjectReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ReleaseObject in the Runtime domain.

type RemoteObject

type RemoteObject struct {
	// Type Object type.
	//
	// Values: "object", "function", "undefined", "string", "number", "boolean", "symbol", "bigint", "wasm".
	Type string `json:"type"`
	// Subtype Object subtype hint. Specified for `object` or `wasm` type
	// values only.
	//
	// Values: "array", "null", "node", "regexp", "date", "map", "set", "weakmap", "weakset", "iterator", "generator", "error", "proxy", "promise", "typedarray", "arraybuffer", "dataview", "i32", "i64", "f32", "f64", "v128".
	Subtype             string                `json:"subtype,omitempty"`
	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 *UnserializableValue  `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            shared.RemoteObjectID `json:"objectId,omitempty"`            // Unique object identifier (for non-primitive values).
	// Preview Preview containing abbreviated property values. Specified
	// for `object` type values only.
	//
	// Note: This property is experimental.
	Preview *ObjectPreview `json:"preview,omitempty"`
	// CustomPreview
	//
	// Note: This property is experimental.
	CustomPreview *CustomPreview `json:"customPreview,omitempty"`
}

RemoteObject Mirror object referencing original JavaScript object.

type RemoveBindingArgs

type RemoveBindingArgs struct {
	Name string `json:"name"` // No description.
}

RemoveBindingArgs represents the arguments for RemoveBinding in the Runtime domain.

func (*RemoveBindingArgs) MarshalJSON

func (a *RemoveBindingArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RemoveBinding in the Runtime domain.

func (*RemoveBindingArgs) UnmarshalJSON

func (a *RemoveBindingArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveBinding in the Runtime domain.

type RemoveBindingReply

type RemoveBindingReply struct {
}

RemoveBindingReply represents the return values for RemoveBinding in the Runtime domain.

func (*RemoveBindingReply) GetFrameID

func (a *RemoveBindingReply) GetFrameID() string

RemoveBindingReply returns the FrameID value for RemoveBinding in the Runtime domain.

func (*RemoveBindingReply) MatchFrameID

func (a *RemoveBindingReply) MatchFrameID(frameID string, m []byte) (bool, error)

RemoveBindingReply returns whether or not the FrameID matches the reply value for RemoveBinding in the Runtime domain.

func (*RemoveBindingReply) UnmarshalJSON

func (a *RemoveBindingReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveBinding in the Runtime domain.

type RunIfWaitingForDebuggerArgs

type RunIfWaitingForDebuggerArgs struct {
}

RunIfWaitingForDebuggerArgs represents the arguments for RunIfWaitingForDebugger in the Runtime domain.

func (*RunIfWaitingForDebuggerArgs) MarshalJSON

func (a *RunIfWaitingForDebuggerArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RunIfWaitingForDebugger in the Runtime domain.

func (*RunIfWaitingForDebuggerArgs) UnmarshalJSON

func (a *RunIfWaitingForDebuggerArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RunIfWaitingForDebugger in the Runtime domain.

type RunIfWaitingForDebuggerReply

type RunIfWaitingForDebuggerReply struct {
}

RunIfWaitingForDebuggerReply represents the return values for RunIfWaitingForDebugger in the Runtime domain.

func (*RunIfWaitingForDebuggerReply) GetFrameID

func (a *RunIfWaitingForDebuggerReply) GetFrameID() string

RunIfWaitingForDebuggerReply returns the FrameID value for RunIfWaitingForDebugger in the Runtime domain.

func (*RunIfWaitingForDebuggerReply) MatchFrameID

func (a *RunIfWaitingForDebuggerReply) MatchFrameID(frameID string, m []byte) (bool, error)

RunIfWaitingForDebuggerReply returns whether or not the FrameID matches the reply value for RunIfWaitingForDebugger in the Runtime domain.

func (*RunIfWaitingForDebuggerReply) UnmarshalJSON

func (a *RunIfWaitingForDebuggerReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RunIfWaitingForDebugger in the Runtime domain.

type RunScriptArgs

type RunScriptArgs struct {
	ScriptID              ScriptID           `json:"scriptId"`                        // Id of the script to run.
	ExecutionContextID    ExecutionContextID `json:"executionContextId,omitempty"`    // Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
	ObjectGroup           string             `json:"objectGroup,omitempty"`           // Symbolic group name that can be used to release multiple objects.
	Silent                bool               `json:"silent,omitempty"`                // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.
	IncludeCommandLineAPI bool               `json:"includeCommandLineAPI,omitempty"` // Determines whether Command Line API should be available during the evaluation.
	ReturnByValue         bool               `json:"returnByValue,omitempty"`         // Whether the result is expected to be a JSON object which should be sent by value.
	GeneratePreview       bool               `json:"generatePreview,omitempty"`       // Whether preview should be generated for the result.
	AwaitPromise          bool               `json:"awaitPromise,omitempty"`          // Whether execution should `await` for resulting value and return once awaited promise is resolved.
}

RunScriptArgs represents the arguments for RunScript in the Runtime domain.

func (*RunScriptArgs) MarshalJSON

func (a *RunScriptArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RunScript in the Runtime domain.

func (*RunScriptArgs) UnmarshalJSON

func (a *RunScriptArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RunScript in the Runtime domain.

type RunScriptReply

type RunScriptReply struct {
	Result           RemoteObject      `json:"result"`                     // Run result.
	ExceptionDetails *ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

RunScriptReply represents the return values for RunScript in the Runtime domain.

func (*RunScriptReply) GetFrameID

func (a *RunScriptReply) GetFrameID() string

RunScriptReply returns the FrameID value for RunScript in the Runtime domain.

func (*RunScriptReply) MatchFrameID

func (a *RunScriptReply) MatchFrameID(frameID string, m []byte) (bool, error)

RunScriptReply returns whether or not the FrameID matches the reply value for RunScript in the Runtime domain.

func (*RunScriptReply) UnmarshalJSON

func (a *RunScriptReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RunScript in the Runtime domain.

type ScriptID

type ScriptID string

ScriptID Unique script identifier.

type SetCustomObjectFormatterEnabledArgs

type SetCustomObjectFormatterEnabledArgs struct {
	Enabled bool `json:"enabled"` // No description.
}

SetCustomObjectFormatterEnabledArgs represents the arguments for SetCustomObjectFormatterEnabled in the Runtime domain.

func (*SetCustomObjectFormatterEnabledArgs) MarshalJSON

func (a *SetCustomObjectFormatterEnabledArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetCustomObjectFormatterEnabled in the Runtime domain.

func (*SetCustomObjectFormatterEnabledArgs) UnmarshalJSON

func (a *SetCustomObjectFormatterEnabledArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetCustomObjectFormatterEnabled in the Runtime domain.

type SetCustomObjectFormatterEnabledReply

type SetCustomObjectFormatterEnabledReply struct {
}

SetCustomObjectFormatterEnabledReply represents the return values for SetCustomObjectFormatterEnabled in the Runtime domain.

func (*SetCustomObjectFormatterEnabledReply) GetFrameID

SetCustomObjectFormatterEnabledReply returns the FrameID value for SetCustomObjectFormatterEnabled in the Runtime domain.

func (*SetCustomObjectFormatterEnabledReply) MatchFrameID

func (a *SetCustomObjectFormatterEnabledReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetCustomObjectFormatterEnabledReply returns whether or not the FrameID matches the reply value for SetCustomObjectFormatterEnabled in the Runtime domain.

func (*SetCustomObjectFormatterEnabledReply) UnmarshalJSON

func (a *SetCustomObjectFormatterEnabledReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetCustomObjectFormatterEnabled in the Runtime domain.

type SetMaxCallStackSizeToCaptureArgs

type SetMaxCallStackSizeToCaptureArgs struct {
	Size int `json:"size"` // No description.
}

SetMaxCallStackSizeToCaptureArgs represents the arguments for SetMaxCallStackSizeToCapture in the Runtime domain.

func (*SetMaxCallStackSizeToCaptureArgs) MarshalJSON

func (a *SetMaxCallStackSizeToCaptureArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetMaxCallStackSizeToCapture in the Runtime domain.

func (*SetMaxCallStackSizeToCaptureArgs) UnmarshalJSON

func (a *SetMaxCallStackSizeToCaptureArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetMaxCallStackSizeToCapture in the Runtime domain.

type SetMaxCallStackSizeToCaptureReply

type SetMaxCallStackSizeToCaptureReply struct {
}

SetMaxCallStackSizeToCaptureReply represents the return values for SetMaxCallStackSizeToCapture in the Runtime domain.

func (*SetMaxCallStackSizeToCaptureReply) GetFrameID

func (a *SetMaxCallStackSizeToCaptureReply) GetFrameID() string

SetMaxCallStackSizeToCaptureReply returns the FrameID value for SetMaxCallStackSizeToCapture in the Runtime domain.

func (*SetMaxCallStackSizeToCaptureReply) MatchFrameID

func (a *SetMaxCallStackSizeToCaptureReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetMaxCallStackSizeToCaptureReply returns whether or not the FrameID matches the reply value for SetMaxCallStackSizeToCapture in the Runtime domain.

func (*SetMaxCallStackSizeToCaptureReply) UnmarshalJSON

func (a *SetMaxCallStackSizeToCaptureReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetMaxCallStackSizeToCapture in the Runtime domain.

type StackTrace

type StackTrace 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  []CallFrame `json:"callFrames"`            // JavaScript function name.
	Parent      *StackTrace `json:"parent,omitempty"`      // Asynchronous JavaScript stack trace that preceded this stack, if available.
	// ParentID Asynchronous JavaScript stack trace that preceded this
	// stack, if available.
	//
	// Note: This property is experimental.
	ParentID StackTraceID `json:"parentId,omitempty"`
}

StackTrace Call frames for assertions or error messages.

type StackTraceID

type StackTraceID struct {
	ID         string           `json:"id"`                   // No description.
	DebuggerID UniqueDebuggerID `json:"debuggerId,omitempty"` // No description.
}

StackTraceID If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.

Note: This type is experimental.

type TerminateExecutionArgs

type TerminateExecutionArgs struct {
}

TerminateExecutionArgs represents the arguments for TerminateExecution in the Runtime domain.

func (*TerminateExecutionArgs) MarshalJSON

func (a *TerminateExecutionArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for TerminateExecution in the Runtime domain.

func (*TerminateExecutionArgs) UnmarshalJSON

func (a *TerminateExecutionArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TerminateExecution in the Runtime domain.

type TerminateExecutionReply

type TerminateExecutionReply struct {
}

TerminateExecutionReply represents the return values for TerminateExecution in the Runtime domain.

func (*TerminateExecutionReply) GetFrameID

func (a *TerminateExecutionReply) GetFrameID() string

TerminateExecutionReply returns the FrameID value for TerminateExecution in the Runtime domain.

func (*TerminateExecutionReply) MatchFrameID

func (a *TerminateExecutionReply) MatchFrameID(frameID string, m []byte) (bool, error)

TerminateExecutionReply returns whether or not the FrameID matches the reply value for TerminateExecution in the Runtime domain.

func (*TerminateExecutionReply) UnmarshalJSON

func (a *TerminateExecutionReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TerminateExecution in the Runtime domain.

type TimeDelta

type TimeDelta float64

TimeDelta Number of milliseconds.

type Timestamp

type Timestamp float64

Timestamp Number of milliseconds since epoch.

func (Timestamp) MarshalJSON

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

MarshalJSON implements json.Marshaler. Encodes to null if t is zero.

func (Timestamp) String

func (t Timestamp) String() string

String calls (time.Time).String().

func (Timestamp) Time

func (t Timestamp) Time() time.Time

Time parses the Unix time with millisecond accuracy.

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

type UniqueDebuggerID

type UniqueDebuggerID string

UniqueDebuggerID Unique identifier of current debugger.

Note: This type is experimental.

type Unmarshaler

type Unmarshaler func() json.Unmarshaler

type UnserializableValue

type UnserializableValue string

UnserializableValue Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL