inspector

package
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: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CommandInspectorDisable = "Inspector.disable"
	CommandInspectorEnable  = "Inspector.enable"
)
View Source
const (
	EventInspectorDetached                 = "Inspector.detached"
	EventInspectorTargetCrashed            = "Inspector.targetCrashed"
	EventInspectorTargetReloadedAfterCrash = "Inspector.targetReloadedAfterCrash"
)

Variables

Functions

func GetEventReply

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

Types

type DetachedReply

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

DetachedReply is the reply for Detached events.

func (*DetachedReply) GetFrameID

func (a *DetachedReply) GetFrameID() string

DetachedReply returns the FrameID for Detached in the Inspector domain.

func (*DetachedReply) MatchFrameID

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

DetachedReply returns whether or not the FrameID matches the reply value for Detached in the Inspector domain.

func (*DetachedReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for Detached in the Inspector domain.

type DisableArgs

type DisableArgs struct {
}

DisableArgs represents the arguments for Disable in the Inspector domain.

func (*DisableArgs) MarshalJSON

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

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

func (*DisableArgs) UnmarshalJSON

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

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

type DisableReply

type DisableReply struct {
}

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

func (*DisableReply) GetFrameID

func (a *DisableReply) GetFrameID() string

DisableReply returns the FrameID value for Disable in the Inspector 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 Inspector domain.

func (*DisableReply) UnmarshalJSON

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

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

type EnableArgs

type EnableArgs struct {
}

EnableArgs represents the arguments for Enable in the Inspector domain.

func (*EnableArgs) MarshalJSON

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

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

func (*EnableArgs) UnmarshalJSON

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

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

type EnableReply

type EnableReply struct {
}

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

func (*EnableReply) GetFrameID

func (a *EnableReply) GetFrameID() string

EnableReply returns the FrameID value for Enable in the Inspector 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 Inspector domain.

func (*EnableReply) UnmarshalJSON

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

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

type TargetCrashedReply

type TargetCrashedReply struct {
}

TargetCrashedReply is the reply for TargetCrashed events.

func (*TargetCrashedReply) GetFrameID

func (a *TargetCrashedReply) GetFrameID() string

TargetCrashedReply returns the FrameID for TargetCrashed in the Inspector domain.

func (*TargetCrashedReply) MatchFrameID

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

TargetCrashedReply returns whether or not the FrameID matches the reply value for TargetCrashed in the Inspector domain.

func (*TargetCrashedReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for TargetCrashed in the Inspector domain.

type TargetReloadedAfterCrashReply

type TargetReloadedAfterCrashReply struct {
}

TargetReloadedAfterCrashReply is the reply for TargetReloadedAfterCrash events.

func (*TargetReloadedAfterCrashReply) GetFrameID

func (a *TargetReloadedAfterCrashReply) GetFrameID() string

TargetReloadedAfterCrashReply returns the FrameID for TargetReloadedAfterCrash in the Inspector domain.

func (*TargetReloadedAfterCrashReply) MatchFrameID

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

TargetReloadedAfterCrashReply returns whether or not the FrameID matches the reply value for TargetReloadedAfterCrash in the Inspector domain.

func (*TargetReloadedAfterCrashReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for TargetReloadedAfterCrash in the Inspector domain.

type Unmarshaler

type Unmarshaler func() json.Unmarshaler

Jump to

Keyboard shortcuts

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