inspector

package
v0.0.0-...-8ed5860 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 7 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) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

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) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

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.

func (DisableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

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.

func (EnableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventDetached) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDetached) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventDetached) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDetached) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventTargetCrashed

type EventTargetCrashed struct{}

EventTargetCrashed fired when debugging target has crashed.

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

func (EventTargetCrashed) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventTargetCrashed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventTargetCrashed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventTargetCrashed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventTargetReloadedAfterCrash) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventTargetReloadedAfterCrash) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventTargetReloadedAfterCrash) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventTargetReloadedAfterCrash) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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