cdproto: github.com/chromedp/cdproto/tethering Index | Files

package tethering

import "github.com/chromedp/cdproto/tethering"

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 cdproto-gen command.

Index

Package Files

easyjson.go events.go tethering.go

Constants

const (
    CommandBind   = "Tethering.bind"
    CommandUnbind = "Tethering.unbind"
)

Command names.

type BindParams Uses

type BindParams struct {
    Port int64 `json:"port"` // Port number to bind.
}

BindParams request browser port binding.

func Bind Uses

func Bind(port int64) *BindParams

Bind request browser port binding.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#method-bind

parameters:

port - Port number to bind.

func (*BindParams) Do Uses

func (p *BindParams) Do(ctx context.Context) (err error)

Do executes Tethering.bind against the provided context.

func (BindParams) MarshalEasyJSON Uses

func (v BindParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BindParams) MarshalJSON Uses

func (v BindParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BindParams) UnmarshalEasyJSON Uses

func (v *BindParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BindParams) UnmarshalJSON Uses

func (v *BindParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAccepted Uses

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

func (EventAccepted) MarshalEasyJSON Uses

func (v EventAccepted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAccepted) MarshalJSON Uses

func (v EventAccepted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAccepted) UnmarshalEasyJSON Uses

func (v *EventAccepted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAccepted) UnmarshalJSON Uses

func (v *EventAccepted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UnbindParams Uses

type UnbindParams struct {
    Port int64 `json:"port"` // Port number to unbind.
}

UnbindParams request browser port unbinding.

func Unbind Uses

func Unbind(port int64) *UnbindParams

Unbind request browser port unbinding.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#method-unbind

parameters:

port - Port number to unbind.

func (*UnbindParams) Do Uses

func (p *UnbindParams) Do(ctx context.Context) (err error)

Do executes Tethering.unbind against the provided context.

func (UnbindParams) MarshalEasyJSON Uses

func (v UnbindParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UnbindParams) MarshalJSON Uses

func (v UnbindParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UnbindParams) UnmarshalEasyJSON Uses

func (v *UnbindParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UnbindParams) UnmarshalJSON Uses

func (v *UnbindParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package tethering imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.