tethering

package
v0.0.0-...-b9fffb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 2 Imported by: 4

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

Index

Constants

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

Command names.

Variables

This section is empty.

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.

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

parameters:

port - Port number to bind.

func (*BindParams) Do

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

Do executes Tethering.bind against the provided context.

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 request browser port unbinding.

func Unbind

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

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

Do executes Tethering.unbind against the provided context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL