package ui
import "golang.org/x/build/internal/gomoteserver/ui"
Index ¶
- func HandleStatusFunc(pool interface{ List() []*remote.Session }, version string) http.HandlerFunc
- func HandleStyleCSS(w http.ResponseWriter, r *http.Request)
- func Redirect(hf http.HandlerFunc, srcHost, dstHost string) http.HandlerFunc
Functions ¶
func HandleStatusFunc ¶
func HandleStatusFunc(pool interface{ List() []*remote.Session }, version string) http.HandlerFunc
HandleStatusFunc gives a HTTP handler which can report the status of the instances in the session pool.
func HandleStyleCSS ¶
func HandleStyleCSS(w http.ResponseWriter, r *http.Request)
HandleStyleCSS responds with the CSS code.
func Redirect ¶
func Redirect(hf http.HandlerFunc, srcHost, dstHost string) http.HandlerFunc
Redirect redirects requests from the source host to the destination host if the host matches the source host. If the host does not match the source host, then the request will be passed to the passed in handler.
Source Files ¶
ui.go
- Version
- v0.0.0-20250421191922-3619c213cff3 (latest)
- Published
- Apr 21, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 months ago –
Tools for package owners.