Source File
tethering.go
Belonging Package
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.package tethering// Code generated by cdproto-gen. DO NOT EDIT.import ()// BindParams request browser port binding.type BindParams struct {Port int64 `json:"port"` // Port number to bind.}// Bind request browser port binding.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#method-bind//// parameters://// port - Port number to bind.func ( int64) *BindParams {return &BindParams{Port: ,}}// Do executes Tethering.bind against the provided context.func ( *BindParams) ( context.Context) ( error) {return cdp.Execute(, CommandBind, , nil)}// UnbindParams request browser port unbinding.type UnbindParams struct {Port int64 `json:"port"` // Port number to unbind.}// Unbind request browser port unbinding.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Tethering#method-unbind//// parameters://// port - Port number to unbind.func ( int64) *UnbindParams {return &UnbindParams{Port: ,}}// Do executes Tethering.unbind against the provided context.func ( *UnbindParams) ( context.Context) ( error) {return cdp.Execute(, CommandUnbind, , nil)}// Command names.const (CommandBind = "Tethering.bind"CommandUnbind = "Tethering.unbind")
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |