Documentation
¶
Overview ¶
Package bridge embeds the renderer runtime that MyGo injects into pages.
bridge.js is built from ../../packages/bridge by `bun run build` and committed, so building a MyGo application never requires Bun.
Index ¶
Constants ¶
View Source
const TitleBarEvent = "mygo:title-bar"
TitleBarEvent tells a page of a window with a hidden title bar the room the window controls take. The bridge keeps it in the --mygo-titlebar-* CSS variables.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Platform string `json:"platform"`
WindowID int `json:"windowId"`
Version string `json:"version"`
// Secret prefixes every message the bridge posts.
Secret string `json:"secret"`
}
Config is passed to the bridge as __MYGO_CONFIG__.
Click to show internal directories.
Click to hide internal directories.