devtool_web

package
v0.51.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BrowserProtocolID = protocol.ID("devtool/web/browser-rpc")

BrowserProtocolID is the protocol ID used for devtool-to-browser RPC calls. The browser serves incoming streams on this protocol, allowing the devtool (or a Go test harness) to call any RPC service on the browser bus.

View Source
const EntrypointClientID = "devtool/web/entrypoint"

EntrypointClientID is the client ID used for devtool-entrypoint originating RPC calls.

View Source
const HostProtocolID = protocol.ID("devtool/web/rpc")

HostProtocolID is the protocol ID used for devtool-host RPC calls.

View Source
const HostServerID = "devtool/web"

HostServerID is the server ID used for devtool-host originating RPC calls.

View Source
const HostServiceIDPrefix = "devtool/"

HostServiceIDPrefix is the prefix used for the devtool RPC services. This ID can be prepended to RPC service IDs to indicate the service is located on the devtool (while running within the web runtime).

View Source
const HostVolumeID = "devtool"

HostVolumeID is the volume ID used for devtool-host volume.

View Source
const HostVolumeServiceIDPrefix = "devtool-volume/"

HostVolumeServiceIDPrefix is the service ID prefix for the host ProxyVolume.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevtoolInitBrowser

type DevtoolInitBrowser struct {

	// AppId is the application id for browser storage.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"appId,omitempty"`
	// DevtoolPeerId is the peer id to use for the devtool link.
	DevtoolPeerId string `protobuf:"bytes,2,opt,name=devtool_peer_id,json=devtoolPeerId,proto3" json:"devtoolPeerId,omitempty"`
	// DevtoolVolumeInfo is the information for the devtool Volume.
	// The volume is exposed with a ProxyVolume.
	DevtoolVolumeInfo *volume.VolumeInfo `protobuf:"bytes,3,opt,name=devtool_volume_info,json=devtoolVolumeInfo,proto3" json:"devtoolVolumeInfo,omitempty"`
	// StartPlugins is a list of plugins to LoadPlugin at startup.
	StartPlugins []string `protobuf:"bytes,4,rep,name=start_plugins,json=startPlugins,proto3" json:"startPlugins,omitempty"`
	// ForceDedicatedWorkers overrides the default SharedWorker mode to use
	// dedicated Workers for plugins. Useful for testing with Playwright
	// which can capture console output from dedicated workers but not shared.
	ForceDedicatedWorkers bool `protobuf:"varint,5,opt,name=force_dedicated_workers,json=forceDedicatedWorkers,proto3" json:"forceDedicatedWorkers,omitempty"`
	// contains filtered or unexported fields
}

DevtoolInitBrowser is the message initializing the browser from the devtool.

func (*DevtoolInitBrowser) CloneMessageVT

func (m *DevtoolInitBrowser) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DevtoolInitBrowser) CloneVT

func (m *DevtoolInitBrowser) CloneVT() *DevtoolInitBrowser

func (*DevtoolInitBrowser) EqualMessageVT

func (this *DevtoolInitBrowser) EqualMessageVT(thatMsg any) bool

func (*DevtoolInitBrowser) EqualVT

func (this *DevtoolInitBrowser) EqualVT(that *DevtoolInitBrowser) bool

func (*DevtoolInitBrowser) GetAppId

func (x *DevtoolInitBrowser) GetAppId() string

func (*DevtoolInitBrowser) GetDevtoolPeerId

func (x *DevtoolInitBrowser) GetDevtoolPeerId() string

func (*DevtoolInitBrowser) GetDevtoolVolumeInfo

func (x *DevtoolInitBrowser) GetDevtoolVolumeInfo() *volume.VolumeInfo

func (*DevtoolInitBrowser) GetForceDedicatedWorkers

func (x *DevtoolInitBrowser) GetForceDedicatedWorkers() bool

func (*DevtoolInitBrowser) GetStartPlugins

func (x *DevtoolInitBrowser) GetStartPlugins() []string

func (*DevtoolInitBrowser) MarshalJSON

func (x *DevtoolInitBrowser) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DevtoolInitBrowser to JSON.

func (*DevtoolInitBrowser) MarshalProtoJSON

func (x *DevtoolInitBrowser) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DevtoolInitBrowser message to JSON.

func (*DevtoolInitBrowser) MarshalProtoText

func (x *DevtoolInitBrowser) MarshalProtoText() string

func (*DevtoolInitBrowser) MarshalToSizedBufferVT

func (m *DevtoolInitBrowser) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DevtoolInitBrowser) MarshalToVT

func (m *DevtoolInitBrowser) MarshalToVT(dAtA []byte) (int, error)

func (*DevtoolInitBrowser) MarshalVT

func (m *DevtoolInitBrowser) MarshalVT() (dAtA []byte, err error)

func (*DevtoolInitBrowser) ParsePeerID

func (i *DevtoolInitBrowser) ParsePeerID() (peer.ID, error)

ParseDevtoolPeerID parses the devtool peer id field.

func (*DevtoolInitBrowser) ProtoMessage

func (*DevtoolInitBrowser) ProtoMessage()

func (*DevtoolInitBrowser) Reset

func (x *DevtoolInitBrowser) Reset()

func (*DevtoolInitBrowser) SizeVT

func (m *DevtoolInitBrowser) SizeVT() (n int)

func (*DevtoolInitBrowser) String

func (x *DevtoolInitBrowser) String() string

func (*DevtoolInitBrowser) UnmarshalJSON

func (x *DevtoolInitBrowser) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DevtoolInitBrowser from JSON.

func (*DevtoolInitBrowser) UnmarshalProtoJSON

func (x *DevtoolInitBrowser) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DevtoolInitBrowser message from JSON.

func (*DevtoolInitBrowser) UnmarshalVT

func (m *DevtoolInitBrowser) UnmarshalVT(dAtA []byte) error

func (*DevtoolInitBrowser) Validate

func (i *DevtoolInitBrowser) Validate() error

Validate validates the DevtoolInitBrowser.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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