inspector

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package inspector provides the Chrome DevTools Protocol commands, types, and events for the Inspector domain.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandDisable = "Inspector.disable"
	CommandEnable  = "Inspector.enable"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetachReason

type DetachReason string

DetachReason detach reason.

See: ( -- none -- )

const (
	DetachReasonTargetClosed         DetachReason = "target_closed"
	DetachReasonCanceledByUser       DetachReason = "canceled_by_user"
	DetachReasonReplacedWithDevtools DetachReason = "replaced_with_devtools"
	DetachReasonRenderProcessGone    DetachReason = "Render process gone."
)

DetachReason values.

func (DetachReason) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (DetachReason) String

func (t DetachReason) String() string

String returns the DetachReason as string value.

func (*DetachReason) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams

type DisableParams struct{}

DisableParams disables inspector domain notifications.

func Disable

func Disable() *DisableParams

Disable disables inspector domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Inspector#method-disable

func (*DisableParams) Do

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

Do executes Inspector.disable against the provided context.

type EnableParams

type EnableParams struct{}

EnableParams enables inspector domain notifications.

func Enable

func Enable() *EnableParams

Enable enables inspector domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Inspector#method-enable

func (*EnableParams) Do

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

Do executes Inspector.enable against the provided context.

type EventDetached

type EventDetached struct {
	Reason DetachReason `json:"reason"` // The reason why connection has been terminated.
}

EventDetached fired when remote debugging connection is about to be terminated. Contains detach reason.

See: https://chromedevtools.github.io/devtools-protocol/tot/Inspector#event-detached

type EventTargetCrashed

type EventTargetCrashed struct{}

EventTargetCrashed fired when debugging target has crashed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Inspector#event-targetCrashed

type EventTargetReloadedAfterCrash

type EventTargetReloadedAfterCrash struct{}

EventTargetReloadedAfterCrash fired when debugging target has reloaded after crash.

See: https://chromedevtools.github.io/devtools-protocol/tot/Inspector#event-targetReloadedAfterCrash

Jump to

Keyboard shortcuts

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