Documentation
¶
Overview ¶
Package server wires all services together and starts the HTTP servers. The public listener serves dashboard SPA, dashboard JSON API (/api) and /v1 API with bootstrapping and authentication enforced. The optional admin listener serves the same JSON API without either and binds loopback only. Route tables live in httpapi and mount on both.
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 fully-wired llm-router application: one public listener plus an optional loopback-only admin listener answering the same JSON API without authentication.
func New ¶
New builds the full Server from config. The SQLite file at DBPath owns durable configuration; the file at CachePath owns rebuildable cache state; the file at EventsPath owns operator telemetry. All start empty on first run; built-in rows seed into the database file.
func (*Server) Close ¶
Close releases the SQLite handles, vacuuming each file after checkpointing its write-ahead log. Call after Run returns.
func (*Server) EventsService ¶ added in v0.4.0
EventsService exposes the events service for logger wiring.