vendor/github.com/go-rod/rod/lib/proto/event_breakpoints.go

56 lines · 1742 bytes

 1// This file is generated by "./lib/proto/generate"
 2
 3package proto
 4
 5/*
 6
 7EventBreakpoints
 8
 9EventBreakpoints permits setting JavaScript breakpoints on operations and events
10occurring in native code invoked from JavaScript. Once breakpoint is hit, it is
11reported through Debugger domain, similarly to regular breakpoints being hit.
12
13*/
14
15// EventBreakpointsSetInstrumentationBreakpoint Sets breakpoint on particular native event.
16type EventBreakpointsSetInstrumentationBreakpoint struct {
17	// EventName Instrumentation name to stop on.
18	EventName string `json:"eventName"`
19}
20
21// ProtoReq name.
22func (m EventBreakpointsSetInstrumentationBreakpoint) ProtoReq() string {
23	return "EventBreakpoints.setInstrumentationBreakpoint"
24}
25
26// Call sends the request.
27func (m EventBreakpointsSetInstrumentationBreakpoint) Call(c Client) error {
28	return call(m.ProtoReq(), m, nil, c)
29}
30
31// EventBreakpointsRemoveInstrumentationBreakpoint Removes breakpoint on particular native event.
32type EventBreakpointsRemoveInstrumentationBreakpoint struct {
33	// EventName Instrumentation name to stop on.
34	EventName string `json:"eventName"`
35}
36
37// ProtoReq name.
38func (m EventBreakpointsRemoveInstrumentationBreakpoint) ProtoReq() string {
39	return "EventBreakpoints.removeInstrumentationBreakpoint"
40}
41
42// Call sends the request.
43func (m EventBreakpointsRemoveInstrumentationBreakpoint) Call(c Client) error {
44	return call(m.ProtoReq(), m, nil, c)
45}
46
47// EventBreakpointsDisable Removes all breakpoints.
48type EventBreakpointsDisable struct{}
49
50// ProtoReq name.
51func (m EventBreakpointsDisable) ProtoReq() string { return "EventBreakpoints.disable" }
52
53// Call sends the request.
54func (m EventBreakpointsDisable) Call(c Client) error {
55	return call(m.ProtoReq(), m, nil, c)
56}