Documentation
¶
Overview ¶
Package httpserver is gitrakz's only servicepack service: it boots the whole app — SQLite storage + migrations, the gh sync engine, the transform/template engine, the LLM adapters, and an aichteeteapee/serbewr HTTP server mounting the generated API under /api/v1/ plus the embedded Svelte SPA — and runs a background sync ticker for the lifetime of the process.
Index ¶
Constants ¶
const ServiceName = "http-server"
ServiceName is this service's registry key, matching the folder name convention (http-server -> package httpserver) per wiring-servicepack.md.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements servicemanager.Service. New wires every dependency eagerly and fails fast; Run starts the HTTP server and the background sync ticker and blocks until ctx is done; Stop tears both down.
func New ¶
New builds every dependency the service needs (config, storage, migrations, the gh sync engine, the transform/template engine, the LLM adapters, and the HTTP server) and fails fast on the first error — no partially-wired Service is ever returned.