Documentation
¶
Overview ¶
Package relaybundle carries the built relay Worker inside the flue binary, so that `flue relay setup` can deploy it into a user's own Cloudflare account with no Node, no wrangler, and no checkout — the same promise the embedded web app makes for the daemon's UI.
The directory this package lives in is also the Worker's source tree. The Go files here are this one and its `dev`-tagged counterpart; everything else is esbuild's input and output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Module ¶
func Module() []byte
Module returns the built Worker.
It returns a copy. The embedded bundle is a package-level []byte, which is mutable, so handing out the backing array would let any caller's slice arithmetic corrupt every later deploy in the process — a 16 KiB copy on a path that runs once per `flue relay setup` is not a cost worth reasoning about, and the alternative is a comment nobody reads.
Types ¶
This section is empty.