Documentation
¶
Overview ¶
Package web serves the wrk React SPA (wrk-react) and mounts wrkserver.
Kept as a separate package so wrkcli can avoid importing wrkserver (which imports wrkcli), preventing an import cycle. cmd/wrk registers Serve via wrkcli.RegisterWebServe.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
Serve binds :port (or auto-picks from 8080 when port==0), prints http://127.0.0.1:<port>/, serves the React SPA (or Vite in Dev) and mounts wrkserver at /api/wrk. Blocks until SIGINT/SIGTERM or server error.
Types ¶
Click to show internal directories.
Click to hide internal directories.