Merge pull request #17427 from roidelapluie/roidelapluie/ffapi

API: Add a /api/v1/features endpoint
This commit is contained in:
Julien
2025-12-10 10:14:03 +01:00
committed by GitHub
20 changed files with 830 additions and 6 deletions

View File

@@ -24,6 +24,9 @@ import (
"github.com/cespare/xxhash/v2"
)
// ImplementationName is the name of the labels implementation.
const ImplementationName = "dedupelabels"
// Labels is implemented by a SymbolTable and string holding name/value
// pairs encoded as indexes into the table in varint encoding.
// Names are in alphabetical order.

View File

@@ -25,6 +25,9 @@ import (
"github.com/cespare/xxhash/v2"
)
// ImplementationName is the name of the labels implementation.
const ImplementationName = "slicelabels"
// Labels is a sorted set of labels. Order has to be guaranteed upon
// instantiation.
type Labels []Label

View File

@@ -23,6 +23,9 @@ import (
"github.com/cespare/xxhash/v2"
)
// ImplementationName is the name of the labels implementation.
const ImplementationName = "stringlabels"
// Labels is implemented by a single flat string holding name/value pairs.
// Each name and value is preceded by its length, encoded as a single byte
// for size 0-254, or the following 3 bytes little-endian, if the first byte is 255.