inspector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package inspector provides the read-only HTTP inspector UI for LoopKit.

It embeds static assets (HTML + JS) and serves a JSON API whose schemas are identical to loopctl --json output (backed by quality/diff and quality/eval).

API endpoints:

GET /api/loops             — list all loops (LoopMeta JSON array)
GET /api/loops/{id}/events — event log for a loop (JSON array)
GET /api/diff?a=<id>&b=<id> — trajectory diff (diff.Report JSON)

The server is read-only: there are no mutating routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(store runtime.EventStore) http.Handler

NewHandler returns the HTTP handler for the inspector (for testing without binding a port).

func Serve

func Serve(addr string, store runtime.EventStore) error

Serve starts the inspector HTTP server on addr. store is the EventStore to serve (read-only). Returns when the server terminates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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