admin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package admin exposes a small HTTP server for operational visibility into agentsmith's runtime state. It is intentionally separate from the MCP server so the two concerns live on different ports and can be firewalled independently.

Endpoints:

GET /                          — live dashboard (HTML)
GET /healthz                   — liveness check (JSON)
GET /backends                  — per-backend status array (JSON)
GET /ui/backends               — BackendsPanel htmx partial
GET /ui/backends/{name}        — backend detail page (HTML)
GET /ui/backends/{name}/partial — BackendDetailContent htmx partial

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
}

Server is the admin HTTP server.

func New

func New(gw *gateway.Gateway) *Server

New returns an admin Server backed by the given Gateway.

func (*Server) Handler

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

Handler returns an http.Handler wiring up all admin routes.

Directories

Path Synopsis
templ: version: v0.3.1001
templ: version: v0.3.1001

Jump to

Keyboard shortcuts

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