factory

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouter

func CreateRouter() http.Handler

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.

Provider routing lands in task 2 ([[Allow Claude Code to Pass Through the Proxy]]).

func CreateServer

func CreateServer(listen string) librun.Func

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.

Jump to

Keyboard shortcuts

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