runtime

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwaitPromiseCommand

type AwaitPromiseCommand struct {
	DestinationTargetID string

	PromiseObjectId 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.
	// contains filtered or unexported fields
}

func (*AwaitPromiseCommand) Initalize

func (c *AwaitPromiseCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*AwaitPromiseCommand) Respond

func (c *AwaitPromiseCommand) Respond(r *AwaitPromiseReturn)

func (*AwaitPromiseCommand) RespondWithError

func (c *AwaitPromiseCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type AwaitPromiseCommandFn

type AwaitPromiseCommandFn struct {
	// contains filtered or unexported fields
}

func (*AwaitPromiseCommandFn) Load

func (*AwaitPromiseCommandFn) Store

func (a *AwaitPromiseCommandFn) Store(fn func(AwaitPromiseCommand))

type AwaitPromiseReturn

type AwaitPromiseReturn 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.
}

type CallArgument

type CallArgument struct {
	Value               interface{}          `json:"value"`                         // Primitive value.
	UnserializableValue *UnserializableValue `json:"unserializableValue,omitempty"` // Primitive value which can not be JSON-stringified.
	ObjectId            *RemoteObjectId      `json:"objectId,omitempty"`            // Remote object handle.
}

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   int64    `json:"lineNumber"`   // JavaScript script line number (0-based).
	ColumnNumber int64    `json:"columnNumber"` // JavaScript script column number (0-based).
}

type CallFunctionOnCommand

type CallFunctionOnCommand struct {
	DestinationTargetID string

	ObjectId            RemoteObjectId  `json:"objectId"`                  // Identifier of the object to call function on.
	FunctionDeclaration string          `json:"functionDeclaration"`       // Declaration of the function to call.
	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 <code>setPauseOnException</code> state.
	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"` // [Experimental] Whether preview should be generated for the result.
	UserGesture         *bool           `json:"userGesture,omitempty"`     // [Experimental] Whether execution should be treated as initiated by user in the UI.
	AwaitPromise        *bool           `json:"awaitPromise,omitempty"`    // Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.
	// contains filtered or unexported fields
}

func (*CallFunctionOnCommand) Initalize

func (c *CallFunctionOnCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CallFunctionOnCommand) Respond

func (*CallFunctionOnCommand) RespondWithError

func (c *CallFunctionOnCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CallFunctionOnCommandFn

type CallFunctionOnCommandFn struct {
	// contains filtered or unexported fields
}

func (*CallFunctionOnCommandFn) Load

func (*CallFunctionOnCommandFn) Store

type CallFunctionOnReturn

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

type CompileScriptCommand

type CompileScriptCommand struct {
	DestinationTargetID string

	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.
	// contains filtered or unexported fields
}

func (*CompileScriptCommand) Initalize

func (c *CompileScriptCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CompileScriptCommand) Respond

func (*CompileScriptCommand) RespondWithError

func (c *CompileScriptCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CompileScriptCommandFn

type CompileScriptCommandFn struct {
	// contains filtered or unexported fields
}

func (*CompileScriptCommandFn) Load

func (*CompileScriptCommandFn) Store

func (a *CompileScriptCommandFn) Store(fn func(CompileScriptCommand))

type CompileScriptReturn

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

type ConsoleAPICalledEvent

type ConsoleAPICalledEvent struct {
	Type               ConsoleAPICalledTypeEnum `json:"type"`                 // Type of the call.
	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.
}

type ConsoleAPICalledTypeEnum

type ConsoleAPICalledTypeEnum string
const (
	ConsoleAPICalledTypeLog                 ConsoleAPICalledTypeEnum = "log"
	ConsoleAPICalledTypeDebug               ConsoleAPICalledTypeEnum = "debug"
	ConsoleAPICalledTypeInfo                ConsoleAPICalledTypeEnum = "info"
	ConsoleAPICalledTypeError               ConsoleAPICalledTypeEnum = "error"
	ConsoleAPICalledTypeWarning             ConsoleAPICalledTypeEnum = "warning"
	ConsoleAPICalledTypeDir                 ConsoleAPICalledTypeEnum = "dir"
	ConsoleAPICalledTypeDirxml              ConsoleAPICalledTypeEnum = "dirxml"
	ConsoleAPICalledTypeTable               ConsoleAPICalledTypeEnum = "table"
	ConsoleAPICalledTypeTrace               ConsoleAPICalledTypeEnum = "trace"
	ConsoleAPICalledTypeClear               ConsoleAPICalledTypeEnum = "clear"
	ConsoleAPICalledTypeStartGroup          ConsoleAPICalledTypeEnum = "startGroup"
	ConsoleAPICalledTypeStartGroupCollapsed ConsoleAPICalledTypeEnum = "startGroupCollapsed"
	ConsoleAPICalledTypeEndGroup            ConsoleAPICalledTypeEnum = "endGroup"
	ConsoleAPICalledTypeAssert              ConsoleAPICalledTypeEnum = "assert"
	ConsoleAPICalledTypeProfile             ConsoleAPICalledTypeEnum = "profile"
	ConsoleAPICalledTypeProfileEnd          ConsoleAPICalledTypeEnum = "profileEnd"
	ConsoleAPICalledTypeCount               ConsoleAPICalledTypeEnum = "count"
	ConsoleAPICalledTypeTimeEnd             ConsoleAPICalledTypeEnum = "timeEnd"
)

type CustomPreview

type CustomPreview struct {
	Header                     string          `json:"header"`
	HasBody                    bool            `json:"hasBody"`
	FormatterObjectId          RemoteObjectId  `json:"formatterObjectId"`
	BindRemoteObjectFunctionId RemoteObjectId  `json:"bindRemoteObjectFunctionId"`
	ConfigObjectId             *RemoteObjectId `json:"configObjectId,omitempty"`
}

type DisableCommand

type DisableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DisableCommand) Initalize

func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DisableCommandFn

type DisableCommandFn struct {
	// contains filtered or unexported fields
}

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type DiscardConsoleEntriesCommand

type DiscardConsoleEntriesCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DiscardConsoleEntriesCommand) Initalize

func (c *DiscardConsoleEntriesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DiscardConsoleEntriesCommand) Respond

func (c *DiscardConsoleEntriesCommand) Respond()

func (*DiscardConsoleEntriesCommand) RespondWithError

func (c *DiscardConsoleEntriesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DiscardConsoleEntriesCommandFn

type DiscardConsoleEntriesCommandFn struct {
	// contains filtered or unexported fields
}

func (*DiscardConsoleEntriesCommandFn) Load

func (*DiscardConsoleEntriesCommandFn) Store

type DiscardConsoleEntriesReturn

type DiscardConsoleEntriesReturn struct {
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

type EnableCommandFn struct {
	// contains filtered or unexported fields
}

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

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.
}

type EvaluateCommand

type EvaluateCommand struct {
	DestinationTargetID string

	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 <code>setPauseOnException</code> 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       *bool               `json:"generatePreview,omitempty"`       // [Experimental] Whether preview should be generated for the result.
	UserGesture           *bool               `json:"userGesture,omitempty"`           // [Experimental] Whether execution should be treated as initiated by user in the UI.
	AwaitPromise          *bool               `json:"awaitPromise,omitempty"`          // Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.
	// contains filtered or unexported fields
}

func (*EvaluateCommand) Initalize

func (c *EvaluateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EvaluateCommand) Respond

func (c *EvaluateCommand) Respond(r *EvaluateReturn)

func (*EvaluateCommand) RespondWithError

func (c *EvaluateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EvaluateCommandFn

type EvaluateCommandFn struct {
	// contains filtered or unexported fields
}

func (*EvaluateCommandFn) Load

func (a *EvaluateCommandFn) Load() func(EvaluateCommand)

func (*EvaluateCommandFn) Store

func (a *EvaluateCommandFn) Store(fn func(EvaluateCommand))

type EvaluateReturn

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

type ExceptionDetails

type ExceptionDetails struct {
	ExceptionId        int64               `json:"exceptionId"`                  // Exception id.
	Text               string              `json:"text"`                         // Exception text, which should be used together with exception object when available.
	LineNumber         int64               `json:"lineNumber"`                   // Line number of the exception location (0-based).
	ColumnNumber       int64               `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.
}

type ExceptionRevokedEvent

type ExceptionRevokedEvent struct {
	Reason      string `json:"reason"`      // Reason describing why exception was revoked.
	ExceptionId int64  `json:"exceptionId"` // The id of revoked exception, as reported in <code>exceptionUnhandled</code>.
}

type ExceptionThrownEvent

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

type ExecutionContextCreatedEvent

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

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 *map[string]string `json:"auxData,omitempty"` // Embedder-specific auxiliary data.
}

type ExecutionContextDestroyedEvent

type ExecutionContextDestroyedEvent struct {
	ExecutionContextId ExecutionContextId `json:"executionContextId"` // Id of the destroyed context
}

type ExecutionContextId

type ExecutionContextId int64

type ExecutionContextsClearedEvent

type ExecutionContextsClearedEvent struct {
}

type GetPropertiesCommand

type GetPropertiesCommand struct {
	DestinationTargetID string

	ObjectId               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 *bool          `json:"accessorPropertiesOnly,omitempty"` // [Experimental] If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
	GeneratePreview        *bool          `json:"generatePreview,omitempty"`        // [Experimental] Whether preview should be generated for the results.
	// contains filtered or unexported fields
}

func (*GetPropertiesCommand) Initalize

func (c *GetPropertiesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetPropertiesCommand) Respond

func (*GetPropertiesCommand) RespondWithError

func (c *GetPropertiesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetPropertiesCommandFn

type GetPropertiesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetPropertiesCommandFn) Load

func (*GetPropertiesCommandFn) Store

func (a *GetPropertiesCommandFn) Store(fn func(GetPropertiesCommand))

type GetPropertiesReturn

type GetPropertiesReturn struct {
	Result             []PropertyDescriptor          `json:"result"`                       // Object properties.
	InternalProperties *[]InternalPropertyDescriptor `json:"internalProperties,omitempty"` // Internal object properties (only of the element itself).
	ExceptionDetails   *ExceptionDetails             `json:"exceptionDetails,omitempty"`   // Exception details.
}

type InspectRequestedEvent

type InspectRequestedEvent struct {
	Object RemoteObject      `json:"object"`
	Hints  map[string]string `json:"hints"`
}

type InternalPropertyDescriptor

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

type ObjectPreview

type ObjectPreview struct {
	Type        ObjectPreviewTypeEnum     `json:"type"`                  // Object type.
	Subtype     *ObjectPreviewSubtypeEnum `json:"subtype,omitempty"`     // Object subtype hint. Specified for <code>object</code> 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  []PropertyPreview         `json:"properties"`            // List of the properties.
	Entries     *[]EntryPreview           `json:"entries,omitempty"`     // List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
}

type ObjectPreviewSubtypeEnum

type ObjectPreviewSubtypeEnum string
const (
	ObjectPreviewSubtypeArray     ObjectPreviewSubtypeEnum = "array"
	ObjectPreviewSubtypeNull      ObjectPreviewSubtypeEnum = "null"
	ObjectPreviewSubtypeNode      ObjectPreviewSubtypeEnum = "node"
	ObjectPreviewSubtypeRegexp    ObjectPreviewSubtypeEnum = "regexp"
	ObjectPreviewSubtypeDate      ObjectPreviewSubtypeEnum = "date"
	ObjectPreviewSubtypeMap       ObjectPreviewSubtypeEnum = "map"
	ObjectPreviewSubtypeSet       ObjectPreviewSubtypeEnum = "set"
	ObjectPreviewSubtypeIterator  ObjectPreviewSubtypeEnum = "iterator"
	ObjectPreviewSubtypeGenerator ObjectPreviewSubtypeEnum = "generator"
	ObjectPreviewSubtypeError     ObjectPreviewSubtypeEnum = "error"
)

type ObjectPreviewTypeEnum

type ObjectPreviewTypeEnum string
const (
	ObjectPreviewTypeObject    ObjectPreviewTypeEnum = "object"
	ObjectPreviewTypeFunction  ObjectPreviewTypeEnum = "function"
	ObjectPreviewTypeUndefined ObjectPreviewTypeEnum = "undefined"
	ObjectPreviewTypeString    ObjectPreviewTypeEnum = "string"
	ObjectPreviewTypeNumber    ObjectPreviewTypeEnum = "number"
	ObjectPreviewTypeBoolean   ObjectPreviewTypeEnum = "boolean"
	ObjectPreviewTypeSymbol    ObjectPreviewTypeEnum = "symbol"
)

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 <code>undefined</code> if there is no getter (accessor descriptors only).
	Set          *RemoteObject `json:"set,omitempty"`       // A function which serves as a setter for the property, or <code>undefined</code> 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 <code>symbol</code> type.
}

type PropertyPreview

type PropertyPreview struct {
	Name         string                      `json:"name"`                   // Property name.
	Type         PropertyPreviewTypeEnum     `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 *ObjectPreview              `json:"valuePreview,omitempty"` // Nested value preview.
	Subtype      *PropertyPreviewSubtypeEnum `json:"subtype,omitempty"`      // Object subtype hint. Specified for <code>object</code> type values only.
}

type PropertyPreviewSubtypeEnum

type PropertyPreviewSubtypeEnum string
const (
	PropertyPreviewSubtypeArray     PropertyPreviewSubtypeEnum = "array"
	PropertyPreviewSubtypeNull      PropertyPreviewSubtypeEnum = "null"
	PropertyPreviewSubtypeNode      PropertyPreviewSubtypeEnum = "node"
	PropertyPreviewSubtypeRegexp    PropertyPreviewSubtypeEnum = "regexp"
	PropertyPreviewSubtypeDate      PropertyPreviewSubtypeEnum = "date"
	PropertyPreviewSubtypeMap       PropertyPreviewSubtypeEnum = "map"
	PropertyPreviewSubtypeSet       PropertyPreviewSubtypeEnum = "set"
	PropertyPreviewSubtypeIterator  PropertyPreviewSubtypeEnum = "iterator"
	PropertyPreviewSubtypeGenerator PropertyPreviewSubtypeEnum = "generator"
	PropertyPreviewSubtypeError     PropertyPreviewSubtypeEnum = "error"
)

type PropertyPreviewTypeEnum

type PropertyPreviewTypeEnum string
const (
	PropertyPreviewTypeObject    PropertyPreviewTypeEnum = "object"
	PropertyPreviewTypeFunction  PropertyPreviewTypeEnum = "function"
	PropertyPreviewTypeUndefined PropertyPreviewTypeEnum = "undefined"
	PropertyPreviewTypeString    PropertyPreviewTypeEnum = "string"
	PropertyPreviewTypeNumber    PropertyPreviewTypeEnum = "number"
	PropertyPreviewTypeBoolean   PropertyPreviewTypeEnum = "boolean"
	PropertyPreviewTypeSymbol    PropertyPreviewTypeEnum = "symbol"
	PropertyPreviewTypeAccessor  PropertyPreviewTypeEnum = "accessor"
)

type ReleaseObjectCommand

type ReleaseObjectCommand struct {
	DestinationTargetID string

	ObjectId RemoteObjectId `json:"objectId"` // Identifier of the object to release.
	// contains filtered or unexported fields
}

func (*ReleaseObjectCommand) Initalize

func (c *ReleaseObjectCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ReleaseObjectCommand) Respond

func (c *ReleaseObjectCommand) Respond()

func (*ReleaseObjectCommand) RespondWithError

func (c *ReleaseObjectCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ReleaseObjectCommandFn

type ReleaseObjectCommandFn struct {
	// contains filtered or unexported fields
}

func (*ReleaseObjectCommandFn) Load

func (*ReleaseObjectCommandFn) Store

func (a *ReleaseObjectCommandFn) Store(fn func(ReleaseObjectCommand))

type ReleaseObjectGroupCommand

type ReleaseObjectGroupCommand struct {
	DestinationTargetID string

	ObjectGroup string `json:"objectGroup"` // Symbolic object group name.
	// contains filtered or unexported fields
}

func (*ReleaseObjectGroupCommand) Initalize

func (c *ReleaseObjectGroupCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ReleaseObjectGroupCommand) Respond

func (c *ReleaseObjectGroupCommand) Respond()

func (*ReleaseObjectGroupCommand) RespondWithError

func (c *ReleaseObjectGroupCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ReleaseObjectGroupCommandFn

type ReleaseObjectGroupCommandFn struct {
	// contains filtered or unexported fields
}

func (*ReleaseObjectGroupCommandFn) Load

func (*ReleaseObjectGroupCommandFn) Store

type ReleaseObjectGroupReturn

type ReleaseObjectGroupReturn struct {
}

type ReleaseObjectReturn

type ReleaseObjectReturn struct {
}

type RemoteObject

type RemoteObject struct {
	Type                RemoteObjectTypeEnum     `json:"type"`                          // Object type.
	Subtype             *RemoteObjectSubtypeEnum `json:"subtype,omitempty"`             // Object subtype hint. Specified for <code>object</code> type values only.
	ClassName           *string                  `json:"className,omitempty"`           // Object class (constructor) name. Specified for <code>object</code> type values only.
	Value               interface{}              `json:"value"`                         // 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 <code>value</code>, but gets this property.
	Description         *string                  `json:"description,omitempty"`         // String representation of the object.
	ObjectId            *RemoteObjectId          `json:"objectId,omitempty"`            // Unique object identifier (for non-primitive values).
	Preview             *ObjectPreview           `json:"preview,omitempty"`             // [Experimental] Preview containing abbreviated property values. Specified for <code>object</code> type values only.
	CustomPreview       *CustomPreview           `json:"customPreview,omitempty"`       // [Experimental]
}

type RemoteObjectId

type RemoteObjectId string

type RemoteObjectSubtypeEnum

type RemoteObjectSubtypeEnum string
const (
	RemoteObjectSubtypeArray      RemoteObjectSubtypeEnum = "array"
	RemoteObjectSubtypeNull       RemoteObjectSubtypeEnum = "null"
	RemoteObjectSubtypeNode       RemoteObjectSubtypeEnum = "node"
	RemoteObjectSubtypeRegexp     RemoteObjectSubtypeEnum = "regexp"
	RemoteObjectSubtypeDate       RemoteObjectSubtypeEnum = "date"
	RemoteObjectSubtypeMap        RemoteObjectSubtypeEnum = "map"
	RemoteObjectSubtypeSet        RemoteObjectSubtypeEnum = "set"
	RemoteObjectSubtypeIterator   RemoteObjectSubtypeEnum = "iterator"
	RemoteObjectSubtypeGenerator  RemoteObjectSubtypeEnum = "generator"
	RemoteObjectSubtypeError      RemoteObjectSubtypeEnum = "error"
	RemoteObjectSubtypeProxy      RemoteObjectSubtypeEnum = "proxy"
	RemoteObjectSubtypePromise    RemoteObjectSubtypeEnum = "promise"
	RemoteObjectSubtypeTypedarray RemoteObjectSubtypeEnum = "typedarray"
)

type RemoteObjectTypeEnum

type RemoteObjectTypeEnum string
const (
	RemoteObjectTypeObject    RemoteObjectTypeEnum = "object"
	RemoteObjectTypeFunction  RemoteObjectTypeEnum = "function"
	RemoteObjectTypeUndefined RemoteObjectTypeEnum = "undefined"
	RemoteObjectTypeString    RemoteObjectTypeEnum = "string"
	RemoteObjectTypeNumber    RemoteObjectTypeEnum = "number"
	RemoteObjectTypeBoolean   RemoteObjectTypeEnum = "boolean"
	RemoteObjectTypeSymbol    RemoteObjectTypeEnum = "symbol"
)

type ResourceType

type ResourceType string
const (
	ResourceTypeDocument    ResourceType = "Document"
	ResourceTypeStylesheet  ResourceType = "Stylesheet"
	ResourceTypeImage       ResourceType = "Image"
	ResourceTypeMedia       ResourceType = "Media"
	ResourceTypeFont        ResourceType = "Font"
	ResourceTypeScript      ResourceType = "Script"
	ResourceTypeTextTrack   ResourceType = "TextTrack"
	ResourceTypeXHR         ResourceType = "XHR"
	ResourceTypeFetch       ResourceType = "Fetch"
	ResourceTypeEventSource ResourceType = "EventSource"
	ResourceTypeWebSocket   ResourceType = "WebSocket"
	ResourceTypeManifest    ResourceType = "Manifest"
	ResourceTypeOther       ResourceType = "Other"
)

type RunIfWaitingForDebuggerCommand

type RunIfWaitingForDebuggerCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*RunIfWaitingForDebuggerCommand) Initalize

func (c *RunIfWaitingForDebuggerCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RunIfWaitingForDebuggerCommand) Respond

func (c *RunIfWaitingForDebuggerCommand) Respond()

func (*RunIfWaitingForDebuggerCommand) RespondWithError

func (c *RunIfWaitingForDebuggerCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RunIfWaitingForDebuggerCommandFn

type RunIfWaitingForDebuggerCommandFn struct {
	// contains filtered or unexported fields
}

func (*RunIfWaitingForDebuggerCommandFn) Load

func (*RunIfWaitingForDebuggerCommandFn) Store

type RunIfWaitingForDebuggerReturn

type RunIfWaitingForDebuggerReturn struct {
}

type RunScriptCommand

type RunScriptCommand struct {
	DestinationTargetID string

	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 <code>setPauseOnException</code> 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 wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.
	// contains filtered or unexported fields
}

func (*RunScriptCommand) Initalize

func (c *RunScriptCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RunScriptCommand) Respond

func (c *RunScriptCommand) Respond(r *RunScriptReturn)

func (*RunScriptCommand) RespondWithError

func (c *RunScriptCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RunScriptCommandFn

type RunScriptCommandFn struct {
	// contains filtered or unexported fields
}

func (*RunScriptCommandFn) Load

func (a *RunScriptCommandFn) Load() func(RunScriptCommand)

func (*RunScriptCommandFn) Store

func (a *RunScriptCommandFn) Store(fn func(RunScriptCommand))

type RunScriptReturn

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

type RuntimeAgent

type RuntimeAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *RuntimeAgent

func (*RuntimeAgent) FireConsoleAPICalled

func (agent *RuntimeAgent) FireConsoleAPICalled(event ConsoleAPICalledEvent)

func (*RuntimeAgent) FireConsoleAPICalledOnTarget

func (agent *RuntimeAgent) FireConsoleAPICalledOnTarget(targetId string, event ConsoleAPICalledEvent)

func (*RuntimeAgent) FireExceptionRevoked

func (agent *RuntimeAgent) FireExceptionRevoked(event ExceptionRevokedEvent)

func (*RuntimeAgent) FireExceptionRevokedOnTarget

func (agent *RuntimeAgent) FireExceptionRevokedOnTarget(targetId string, event ExceptionRevokedEvent)

func (*RuntimeAgent) FireExceptionThrown

func (agent *RuntimeAgent) FireExceptionThrown(event ExceptionThrownEvent)

func (*RuntimeAgent) FireExceptionThrownOnTarget

func (agent *RuntimeAgent) FireExceptionThrownOnTarget(targetId string, event ExceptionThrownEvent)

func (*RuntimeAgent) FireExecutionContextCreated

func (agent *RuntimeAgent) FireExecutionContextCreated(event ExecutionContextCreatedEvent)

Dispatchable Events

func (*RuntimeAgent) FireExecutionContextCreatedOnTarget

func (agent *RuntimeAgent) FireExecutionContextCreatedOnTarget(targetId string, event ExecutionContextCreatedEvent)

func (*RuntimeAgent) FireExecutionContextDestroyed

func (agent *RuntimeAgent) FireExecutionContextDestroyed(event ExecutionContextDestroyedEvent)

func (*RuntimeAgent) FireExecutionContextDestroyedOnTarget

func (agent *RuntimeAgent) FireExecutionContextDestroyedOnTarget(targetId string, event ExecutionContextDestroyedEvent)

func (*RuntimeAgent) FireExecutionContextsCleared

func (agent *RuntimeAgent) FireExecutionContextsCleared()

func (*RuntimeAgent) FireExecutionContextsClearedOnTarget

func (agent *RuntimeAgent) FireExecutionContextsClearedOnTarget(targetId string)

func (*RuntimeAgent) FireInspectRequested

func (agent *RuntimeAgent) FireInspectRequested(event InspectRequestedEvent)

func (*RuntimeAgent) FireInspectRequestedOnTarget

func (agent *RuntimeAgent) FireInspectRequestedOnTarget(targetId string, event InspectRequestedEvent)

func (*RuntimeAgent) Name

func (agent *RuntimeAgent) Name() string

func (*RuntimeAgent) ProcessCommand

func (agent *RuntimeAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*RuntimeAgent) SetAwaitPromiseHandler

func (agent *RuntimeAgent) SetAwaitPromiseHandler(handler func(AwaitPromiseCommand))

func (*RuntimeAgent) SetCallFunctionOnHandler

func (agent *RuntimeAgent) SetCallFunctionOnHandler(handler func(CallFunctionOnCommand))

func (*RuntimeAgent) SetCompileScriptHandler

func (agent *RuntimeAgent) SetCompileScriptHandler(handler func(CompileScriptCommand))

func (*RuntimeAgent) SetDisableHandler

func (agent *RuntimeAgent) SetDisableHandler(handler func(DisableCommand))

func (*RuntimeAgent) SetDiscardConsoleEntriesHandler

func (agent *RuntimeAgent) SetDiscardConsoleEntriesHandler(handler func(DiscardConsoleEntriesCommand))

func (*RuntimeAgent) SetEnableHandler

func (agent *RuntimeAgent) SetEnableHandler(handler func(EnableCommand))

func (*RuntimeAgent) SetEvaluateHandler

func (agent *RuntimeAgent) SetEvaluateHandler(handler func(EvaluateCommand))

Commands Sent From Frontend

func (*RuntimeAgent) SetGetPropertiesHandler

func (agent *RuntimeAgent) SetGetPropertiesHandler(handler func(GetPropertiesCommand))

func (*RuntimeAgent) SetReleaseObjectGroupHandler

func (agent *RuntimeAgent) SetReleaseObjectGroupHandler(handler func(ReleaseObjectGroupCommand))

func (*RuntimeAgent) SetReleaseObjectHandler

func (agent *RuntimeAgent) SetReleaseObjectHandler(handler func(ReleaseObjectCommand))

func (*RuntimeAgent) SetRunIfWaitingForDebuggerHandler

func (agent *RuntimeAgent) SetRunIfWaitingForDebuggerHandler(handler func(RunIfWaitingForDebuggerCommand))

func (*RuntimeAgent) SetRunScriptHandler

func (agent *RuntimeAgent) SetRunScriptHandler(handler func(RunScriptCommand))

func (*RuntimeAgent) SetSetCustomObjectFormatterEnabledHandler

func (agent *RuntimeAgent) SetSetCustomObjectFormatterEnabledHandler(handler func(SetCustomObjectFormatterEnabledCommand))

type ScriptId

type ScriptId string

type SetCustomObjectFormatterEnabledCommand

type SetCustomObjectFormatterEnabledCommand struct {
	DestinationTargetID string

	Enabled bool `json:"enabled"`
	// contains filtered or unexported fields
}

func (*SetCustomObjectFormatterEnabledCommand) Initalize

func (c *SetCustomObjectFormatterEnabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetCustomObjectFormatterEnabledCommand) Respond

func (*SetCustomObjectFormatterEnabledCommand) RespondWithError

func (c *SetCustomObjectFormatterEnabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetCustomObjectFormatterEnabledCommandFn

type SetCustomObjectFormatterEnabledCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetCustomObjectFormatterEnabledCommandFn) Load

func (*SetCustomObjectFormatterEnabledCommandFn) Store

type SetCustomObjectFormatterEnabledReturn

type SetCustomObjectFormatterEnabledReturn struct {
}

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.
	PromiseCreationFrame *CallFrame  `json:"promiseCreationFrame,omitempty"` // [Experimental] Creation frame of the Promise which produced the next synchronous trace when resolved, if available.
}

type Timestamp

type Timestamp float64

type UnserializableValue

type UnserializableValue string
const (
	UnserializableValueInfinity     UnserializableValue = "Infinity"
	UnserializableValueNaN          UnserializableValue = "NaN"
	UnserializableValueDashInfinity UnserializableValue = "-Infinity"
	UnserializableValueDash0        UnserializableValue = "-0"
)

Jump to

Keyboard shortcuts

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