recordserve

package
v0.1.107 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

Jump to

Keyboard shortcuts

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