webui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package webui serves the client-side inspection UI (htmx + Alpine) over HTTP. Assets are embedded at build time; the server is expected to bind to a loopback address.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr      string            // listen address, e.g. 127.0.0.1:4040
	Store     inspect.Store     // backing store
	Replayer  *inspect.Replayer // optional — if nil, replay is disabled
	TunnelURL func() string     // live lookup of the public tunnel URL
}

Config configures the UI server.

type Server

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

Server is the webui HTTP server.

func New

func New(cfg Config) (*Server, error)

New constructs a Server ready to be started with Run.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the HTTP server and blocks until the context is cancelled.

Jump to

Keyboard shortcuts

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