Documentation
¶
Overview ¶
Package clientrt embeds framework-owned browser runtime sources and renders the small generated templates consumed by buildgen.
Index ¶
- Constants
- func ClientGoBlockWASMLoaderSource(options ClientGoBlockWASMLoaderOptions) string
- func IslandJSSource(options IslandJSOptions) string
- func IslandRuntimeSource() string
- func Source() []byte
- func StoreSource() string
- func WASMIslandLoaderSource(options WASMIslandLoaderOptions) string
- type ClientGoBlockWASMLoaderOptions
- type IslandJSOptions
- type WASMIslandLoaderOptions
Constants ¶
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
IslandJSOptions names the per-component values inserted into the JavaScript island runtime template.