clientrt

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package clientrt embeds framework-owned browser runtime sources and renders the small generated templates consumed by buildgen.

Index

Constants

View Source
const Filename = "gowdk.js"

Filename is the conventional output name for the generated client runtime.

Variables

This section is empty.

Functions

func ClientGoBlockWASMLoaderSource added in v0.5.0

func ClientGoBlockWASMLoaderSource(options ClientGoBlockWASMLoaderOptions) string

ClientGoBlockWASMLoaderSource returns the generated page-level Go WASM loader.

func IslandJSSource added in v0.5.0

func IslandJSSource(options IslandJSOptions) string

IslandJSSource returns the generated JavaScript island registration stub for one component.

func IslandRuntimeSource added in v0.5.0

func IslandRuntimeSource() string

IslandRuntimeSource returns the shared generated JavaScript island runtime.

func Source

func Source() []byte

Source returns the first client runtime for partial updates and SPA navigation enhancement.

func StoreSource added in v0.5.0

func StoreSource() string

StoreSource returns the generated browser store persistence runtime.

func WASMIslandLoaderSource added in v0.5.0

func WASMIslandLoaderSource(options WASMIslandLoaderOptions) string

WASMIslandLoaderSource returns the generated WASM island host loader.

Types

type ClientGoBlockWASMLoaderOptions added in v0.5.0

type ClientGoBlockWASMLoaderOptions struct {
	PageID       string
	LoaderPath   string
	WASMPath     string
	WASMExecPath string
	MountExport  string
}

ClientGoBlockWASMLoaderOptions names the per-page values inserted into the page-level Go WASM loader template.

type IslandJSOptions added in v0.5.0

type IslandJSOptions struct {
	Component       string
	MountFunction   string
	DestroyFunction string
}

IslandJSOptions names the per-component values inserted into the JavaScript island runtime template.

type WASMIslandLoaderOptions added in v0.5.0

type WASMIslandLoaderOptions struct {
	Component    string
	ComponentID  string
	ABIVersion   string
	WASMPath     string
	WASMExecPath string
}

WASMIslandLoaderOptions names the per-component values inserted into the component WASM island loader template.

Jump to

Keyboard shortcuts

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