webui

package
v0.0.0-...-d9e29ba Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 51 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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