-
-
Notifications
You must be signed in to change notification settings - Fork 327
/
tethering.go
53 lines (39 loc) · 1.2 KB
/
tethering.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// This file is generated by "./lib/proto/generate"
package proto
/*
Tethering
The Tethering domain defines methods and events for browser port binding.
*/
// TetheringBind Request browser port binding.
type TetheringBind struct {
// Port number to bind.
Port int `json:"port"`
}
// ProtoReq name.
func (m TetheringBind) ProtoReq() string { return "Tethering.bind" }
// Call sends the request.
func (m TetheringBind) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}
// TetheringUnbind Request browser port unbinding.
type TetheringUnbind struct {
// Port number to unbind.
Port int `json:"port"`
}
// ProtoReq name.
func (m TetheringUnbind) ProtoReq() string { return "Tethering.unbind" }
// Call sends the request.
func (m TetheringUnbind) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}
// TetheringAccepted Informs that port was successfully bound and got a specified connection id.
type TetheringAccepted struct {
// Port number that was successfully bound.
Port int `json:"port"`
// ConnectionID Connection id to be used.
ConnectionID string `json:"connectionId"`
}
// ProtoEvent name.
func (evt TetheringAccepted) ProtoEvent() string {
return "Tethering.accepted"
}