vendor/github.com/go-rod/rod/lib/proto/inspector.go
58 lines · 1519 bytes
1// This file is generated by "./lib/proto/generate"
2
3package proto
4
5/*
6
7Inspector
8
9*/
10
11// InspectorDisable Disables inspector domain notifications.
12type InspectorDisable struct{}
13
14// ProtoReq name.
15func (m InspectorDisable) ProtoReq() string { return "Inspector.disable" }
16
17// Call sends the request.
18func (m InspectorDisable) Call(c Client) error {
19 return call(m.ProtoReq(), m, nil, c)
20}
21
22// InspectorEnable Enables inspector domain notifications.
23type InspectorEnable struct{}
24
25// ProtoReq name.
26func (m InspectorEnable) ProtoReq() string { return "Inspector.enable" }
27
28// Call sends the request.
29func (m InspectorEnable) Call(c Client) error {
30 return call(m.ProtoReq(), m, nil, c)
31}
32
33// InspectorDetached Fired when remote debugging connection is about to be terminated. Contains detach reason.
34type InspectorDetached struct {
35 // Reason The reason why connection has been terminated.
36 Reason string `json:"reason"`
37}
38
39// ProtoEvent name.
40func (evt InspectorDetached) ProtoEvent() string {
41 return "Inspector.detached"
42}
43
44// InspectorTargetCrashed Fired when debugging target has crashed.
45type InspectorTargetCrashed struct{}
46
47// ProtoEvent name.
48func (evt InspectorTargetCrashed) ProtoEvent() string {
49 return "Inspector.targetCrashed"
50}
51
52// InspectorTargetReloadedAfterCrash Fired when debugging target has reloaded after crash.
53type InspectorTargetReloadedAfterCrash struct{}
54
55// ProtoEvent name.
56func (evt InspectorTargetReloadedAfterCrash) ProtoEvent() string {
57 return "Inspector.targetReloadedAfterCrash"
58}