ui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package ui serves the optional admin web UI on its own listener so the API URL space can stay 100% owned by table names. The UI is enabled via ui.enabled in the config and shuts down with the API server when the shared signal context fires.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(cfg config.Config, sch schema.Schema, apiOrigin string) (*Server, error)

New constructs the UI server. apiOrigin is the URL the browser uses to reach the API server (e.g., "http://localhost:7777"); HTMX requests on the rendered pages target it directly, so the API host must allow this origin via CORS.

func (*Server) Run

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

Jump to

Keyboard shortcuts

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