web_entrypoint_browser

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

README

Web Browser

The browser target implements deploying an app to a web page.

The user navigates to the app, which loads the Go runtime in a WebWorker. The root WebView cannot be closed (as per browser policy). A service worker is used to intercept requests and forward them to the Go runtime for processing. The root page can create and close more pages through the WebView API.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// WebRuntimeId is the unique ID of the runtime.
	//
	// must be set
	// used to determine the broadcast channel ids
	// determined by the webpage that started the worker
	WebRuntimeId string `protobuf:"bytes,1,opt,name=web_runtime_id,json=webRuntimeId,proto3" json:"webRuntimeId,omitempty"`
	// MessagePort is the global value to lookup for the MessagePort.
	// This MessagePort is used to pass other MessagePorts to open clients for the WebRuntimeHost.
	// usually BLDR_WEB_RUNTIME_CLIENT_OPEN.
	MessagePort string `protobuf:"bytes,2,opt,name=message_port,json=messagePort,proto3" json:"messagePort,omitempty"`
	// contains filtered or unexported fields
}

Config is the configuration for the browser controller. Expects to be running in a WebWorker.

func (*Config) CloneMessageVT

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

func (*Config) CloneVT

func (m *Config) CloneVT() *Config

func (*Config) EqualMessageVT

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

func (*Config) EqualVT

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

func (*Config) GetMessagePort

func (x *Config) GetMessagePort() string

func (*Config) GetWebRuntimeId

func (x *Config) GetWebRuntimeId() string

func (*Config) MarshalJSON

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

MarshalJSON marshals the Config to JSON.

func (*Config) MarshalProtoJSON

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

MarshalProtoJSON marshals the Config message to JSON.

func (*Config) MarshalProtoText

func (x *Config) MarshalProtoText() string

func (*Config) MarshalToSizedBufferVT

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

func (*Config) MarshalToVT

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

func (*Config) MarshalVT

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

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (x *Config) Reset()

func (*Config) SizeVT

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

func (*Config) String

func (x *Config) String() string

func (*Config) UnmarshalJSON

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

UnmarshalJSON unmarshals the Config from JSON.

func (*Config) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the Config message from JSON.

func (*Config) UnmarshalVT

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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