Documentation ¶
Overview ¶
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Tethering domain.
The Tethering domain defines methods and events for browser port binding.
Generated by the chromedp-gen command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EventTypes = []cdp.MethodType{ cdp.EventTetheringAccepted, }
EventTypes all event types in the domain.
Functions ¶
This section is empty.
Types ¶
type BindParams ¶
type BindParams struct {
Port int64 `json:"port"` // Port number to bind.
}
BindParams request browser port binding.
func Bind ¶
func Bind(port int64) *BindParams
Bind request browser port binding.
parameters:
port - Port number to bind.
func (BindParams) MarshalEasyJSON ¶
func (v BindParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BindParams) MarshalJSON ¶
func (v BindParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BindParams) UnmarshalEasyJSON ¶
func (v *BindParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BindParams) UnmarshalJSON ¶
func (v *BindParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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.
func (EventAccepted) MarshalEasyJSON ¶
func (v EventAccepted) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAccepted) MarshalJSON ¶
func (v EventAccepted) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAccepted) UnmarshalEasyJSON ¶
func (v *EventAccepted) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAccepted) UnmarshalJSON ¶
func (v *EventAccepted) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UnbindParams ¶
type UnbindParams struct {
Port int64 `json:"port"` // Port number to unbind.
}
UnbindParams request browser port unbinding.
func Unbind ¶
func Unbind(port int64) *UnbindParams
Unbind request browser port unbinding.
parameters:
port - Port number to unbind.
func (*UnbindParams) Do ¶
Do executes Tethering.unbind against the provided context and target handler.
func (UnbindParams) MarshalEasyJSON ¶
func (v UnbindParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UnbindParams) MarshalJSON ¶
func (v UnbindParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UnbindParams) UnmarshalEasyJSON ¶
func (v *UnbindParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UnbindParams) UnmarshalJSON ¶
func (v *UnbindParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface