Documentation
¶
Overview ¶
Package recordserve serves the API of a record results store read-only: the <prefix>/<kind> result profiles and the profile OpenAPI document, as one handler a host mounts under a path of its own. It is traceserve without the sessions API, for a store of recorded query results (recordresults) rather than trace captures. gavel mounts it over a fixture run's record store.
Index ¶
Constants ¶
const APIPrefix = "/api/v1"
APIPrefix is where the result profiles are served under the mount.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(registry *recordresults.Registry) (http.Handler, error)
Handler serves registry's result profiles, rooted at the path the host mounts it at (strip that prefix before it):
GET /api/openapi.json the result profiles
GET /api/v1/profile/{prefix}%2F{kind} a page of a stream (?stream, ?limit, ?offset, ?sort)
Every other path is 404.
Types ¶
This section is empty.