webui

package
v0.0.0-...-93e3117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenBrowser

func OpenBrowser(url string) error

OpenBrowser opens url with the platform's default browser.

Types

type Options

type Options struct {
	Bind                  string
	NoOpenBrowser         bool
	OpenDelay             time.Duration
	OpenBrowser           func(string) error
	Debug                 *debugsrv.Recorder
	RequestProcessRestart func() error
	VoiceToken            string
}

Options configures the web UI server.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server serves the browser UI and bridges websocket RPC to the controller.

func Start

func Start(ctx context.Context, controller *app.Controller, options Options) (*Server, error)

Start starts the web UI server.

func (*Server) Addr

func (s *Server) Addr() string

Addr returns the resolved server bind address.

func (*Server) AppURL

func (s *Server) AppURL() string

AppURL returns the canonical browser app URL for the active session.

func (*Server) URL

func (s *Server) URL() string

URL returns the local browser URL.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL