web

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package web serves embedded SPA UI + JSON API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMetrics

func RenderMetrics(store *history.Store, version string) string

RenderMetrics: Prometheus text; shared by /metrics & CLI.

Types

type Server

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

Server: UI/API + cfg changes & manual applies.

func New

func New(cfg *config.Config, cfgPath, version string) *Server

New: creds from env first, else cfg.

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) ListenAndServe

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

ListenAndServe: serve, block until ctx cancelled.

Jump to

Keyboard shortcuts

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