restapi

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package restapi exposes the knowledge bases over HTTP: search, document reads, agent writes, reindex jobs, health and metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	App    *app.App
	Logger *slog.Logger
	// ObserveSearch, when set, records search latency per KB (Prometheus).
	ObserveSearch func(kb string, seconds float64)
	// contains filtered or unexported fields
}

func New

func New(a *app.App, logger *slog.Logger) *Server

func (*Server) Handler

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

Routes registers the API on a mux. Auth wrapping happens in Handler.

Jump to

Keyboard shortcuts

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