Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
CreateRouter wires the HTTP handlers for the router.
Registers all five canonical admin endpoints — /healthz, /readiness, /metrics, /setloglevel/{level}, /gc — per go-http-service guide. /metrics and /setloglevel are stubbed: the router is a personal-laptop tool with no Prometheus scraper and a static slog level today; the endpoints exist so future ops tooling (or the rule check) finds them.
/v1/ mounts the Anthropic reverse proxy — every Claude Code request (/v1/messages, /v1/models, etc.) is forwarded verbatim to api.anthropic.com. The Authorization header (subscription OAuth bearer) passes through. Per-provider model-name routing lands in task 3.
func CreateServer ¶
CreateServer wires the HTTP server bound to listen, with the canonical router (CreateRouter) as the handler. The cli package consumes this — all dep wiring lives here, not in cli. Returns a run.Func; call it with a context to start and graceful-shutdown the listener.
Types ¶
This section is empty.