Documentation
¶
Overview ¶
Package wirespec is the single source of truth for subflux's HTTP wire contract: the registered wire types, enums, and the endpoint table that cmd/wire-codegen feeds into wiregen to emit the TS types, decoders, typed client, and the Go path constants (internal/apipaths).
routes.go (internal/server) stays authoritative for PERMISSIONS — each endpoint's AuthGroup here is checked against the actual route registration by internal/server's wirespec consistency test, so the two tables cannot drift silently.
wiregen is a build-time-only dependency: this package is imported by cmd/wire-codegen and by tests, never by the server runtime.
The Unix-socket admin plane (POST /api/admin/bootstrap, served via server.AdminHandler on config.AdminSocketPath) is DELIBERATELY off this table: it is not part of the TCP wire contract, has no browser consumer, and its path constant is hand-written in internal/config so the CLI's socket client and main.go share it without generated code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.