Documentation
¶
Overview ¶
Package tethering provides the Chrome DevTools Protocol commands, types, and events for the Tethering domain.
The Tethering domain defines methods and events for browser port binding.
Generated by the pdlgen command.
Index ¶
Constants ¶
const ( CommandBind = "Tethering.bind" CommandUnbind = "Tethering.unbind" )
Command names.
Variables ¶
var Accepted = cdp.Event[EventAccepted]{Method: "Tethering.accepted"}
Accepted informs that port was successfully bound and got a specified connection id.
See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#event-accepted
var Bind = cdp.Command[BindParams, cdp.Empty]{Method: CommandBind}
Bind request browser port binding.
See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#method-bind
var Unbind = cdp.Command[UnbindParams, cdp.Empty]{Method: CommandUnbind}
Unbind request browser port unbinding.
See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#method-unbind
Functions ¶
This section is empty.
Types ¶
type BindParams ¶
type BindParams struct {
Port int64 `json:"port"` // Port number to bind.
}
BindParams are the parameters of the command Tethering.bind.
type EventAccepted ¶
type EventAccepted struct {
Port int64 `json:"port"` // Port number that was successfully bound.
ConnectionID string `json:"connectionId"` // Connection id to be used.
}
EventAccepted informs that port was successfully bound and got a specified connection id.
See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#event-accepted
type UnbindParams ¶
type UnbindParams struct {
Port int64 `json:"port"` // Port number to unbind.
}
UnbindParams are the parameters of the command Tethering.unbind.