web

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package web provides a browser-based UI that streams HTML fragments over SSE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Web

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

Web implements ui.UI with a browser-based interface.

func New

func New(addr string) *Web

New creates a Web UI bound to the given address.

func (*Web) Actions

func (w *Web) Actions() <-chan ui.UserAction

func (*Web) Cancel

func (w *Web) Cancel() <-chan struct{}

func (*Web) Events

func (w *Web) Events() chan<- ui.Event

func (*Web) Input

func (w *Web) Input() <-chan ui.UserInput

func (*Web) Run

func (w *Web) Run(ctx context.Context) error

Run starts the HTTP server, opens the browser, and consumes events until context cancellation.

func (*Web) SetHintFunc

func (w *Web) SetHintFunc(_ func(string) string)

func (*Web) SetWorkdir

func (w *Web) SetWorkdir(_ string)

Jump to

Keyboard shortcuts

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