Documentation
¶
Index ¶
- Constants
- type DevtoolInitBrowser
- func (m *DevtoolInitBrowser) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DevtoolInitBrowser) CloneVT() *DevtoolInitBrowser
- func (this *DevtoolInitBrowser) EqualMessageVT(thatMsg any) bool
- func (this *DevtoolInitBrowser) EqualVT(that *DevtoolInitBrowser) bool
- func (x *DevtoolInitBrowser) GetAppId() string
- func (x *DevtoolInitBrowser) GetDevtoolPeerId() string
- func (x *DevtoolInitBrowser) GetDevtoolVolumeInfo() *volume.VolumeInfo
- func (x *DevtoolInitBrowser) GetForceDedicatedWorkers() bool
- func (x *DevtoolInitBrowser) GetStartPlugins() []string
- func (x *DevtoolInitBrowser) MarshalJSON() ([]byte, error)
- func (x *DevtoolInitBrowser) MarshalProtoJSON(s *json.MarshalState)
- func (x *DevtoolInitBrowser) MarshalProtoText() string
- func (m *DevtoolInitBrowser) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevtoolInitBrowser) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevtoolInitBrowser) MarshalVT() (dAtA []byte, err error)
- func (i *DevtoolInitBrowser) ParsePeerID() (peer.ID, error)
- func (*DevtoolInitBrowser) ProtoMessage()
- func (x *DevtoolInitBrowser) Reset()
- func (m *DevtoolInitBrowser) SizeVT() (n int)
- func (x *DevtoolInitBrowser) String() string
- func (x *DevtoolInitBrowser) UnmarshalJSON(b []byte) error
- func (x *DevtoolInitBrowser) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DevtoolInitBrowser) UnmarshalVT(dAtA []byte) error
- func (i *DevtoolInitBrowser) Validate() error
Constants ¶
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.
const EntrypointClientID = "devtool/web/entrypoint"
EntrypointClientID is the client ID used for devtool-entrypoint originating RPC calls.
const HostProtocolID = protocol.ID("devtool/web/rpc")
HostProtocolID is the protocol ID used for devtool-host RPC calls.
const HostServerID = "devtool/web"
HostServerID is the server ID used for devtool-host originating RPC calls.
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).
const HostVolumeID = "devtool"
HostVolumeID is the volume ID used for devtool-host volume.
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.