ui

package
v0.0.0-...-e6c4605 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package ui provides a web-based development UI for LeapSQL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Engine        *engine.Engine
	Store         core.Store
	Port          int
	Watch         bool
	SessionSecret string
	Logger        *slog.Logger
	ModelsDir     string
}

Config holds configuration for the UI server.

type Server

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

Server is the main UI server.

func NewServer

func NewServer(cfg Config) *Server

NewServer creates a new UI server instance.

func (*Server) IsDev

func (s *Server) IsDev() bool

IsDev returns true if running in development mode.

func (*Server) Notifier

func (s *Server) Notifier() *notifier.Notifier

Notifier returns the server's notifier for SSE updates.

func (*Server) Serve

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

Serve starts the UI server and blocks until the context is cancelled.

Directories

Path Synopsis
Package features provides shared test utilities for UI feature tests.
Package features provides shared test utilities for UI feature tests.
common
Package common provides shared types and utilities for UI features.
Package common provides shared types and utilities for UI features.
common/components
templ: version: v0.3.977
templ: version: v0.3.977
common/layouts
templ: version: v0.3.977
templ: version: v0.3.977
database
Package database provides database browser handlers for the UI.
Package database provides database browser handlers for the UI.
graph
Package graph provides DAG visualization handlers for the UI.
Package graph provides DAG visualization handlers for the UI.
home
Package home provides the home/landing page feature for the UI.
Package home provides the home/landing page feature for the UI.
macros
Package macros provides the macros catalog feature for the UI.
Package macros provides the macros catalog feature for the UI.
models
Package models provides model detail handlers for the UI.
Package models provides model detail handlers for the UI.
runs
Package runs provides run history handlers for the UI.
Package runs provides run history handlers for the UI.
statequery
Package statequery provides handlers for querying the state database.
Package statequery provides handlers for querying the state database.
Package notifier provides a simple broadcast mechanism for SSE updates.
Package notifier provides a simple broadcast mechanism for SSE updates.
Package resources provides static asset handling for the UI server.
Package resources provides static asset handling for the UI server.
Package router sets up HTTP routes for the UI server.
Package router sets up HTTP routes for the UI server.

Jump to

Keyboard shortcuts

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