Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
actor
Package actor carries the identity of the caller making a request.
|
Package actor carries the identity of the caller making a request. |
|
adapter
Package adapter provides the generic adapter framework: a Spec type that bundles wire-shape metadata (inbound URL paths, upstream URL path, auth strategy, canonical translator, token extractor), a generic pipeline.Adapter implementation parameterised by path and auth strategy, a Registry of Specs, and a generic route mounter that iterates registered specs.
|
Package adapter provides the generic adapter framework: a Spec type that bundles wire-shape metadata (inbound URL paths, upstream URL path, auth strategy, canonical translator, token extractor), a generic pipeline.Adapter implementation parameterised by path and auth strategy, a Registry of Specs, and a generic route mounter that iterates registered specs. |
|
adapters
Package adapters names the wire protocol the relay speaks to an upstream.
|
Package adapters names the wire protocol the relay speaks to an upstream. |
|
apply
Package apply is the single loader that turns manifest documents into Postgres rows.
|
Package apply is the single loader that turns manifest documents into Postgres rows. |
|
audit
Package audit records who did what on the control plane: every mutating admin action, every denial, and every login/logout, as one row per HTTP request.
|
Package audit records who did what on the control plane: every mutating admin action, every denial, and every login/logout, as one row per HTTP request. |
|
authz
Package authz answers "can this actor perform this action on this resource?" — a deliberate seam so the v1 always-allow implementation can later be swapped for Casbin / OpenFGA / Keto without touching call sites.
|
Package authz answers "can this actor perform this action on this resource?" — a deliberate seam so the v1 always-allow implementation can later be swapped for Casbin / OpenFGA / Keto without touching call sites. |
|
batch
Package batch is the batch subsystem: it accepts bulk inference submissions, runs each item as a background job (via the jobq module), and exposes submit/poll/cancel/results over the customer-facing /v1 surface.
|
Package batch is the batch subsystem: it accepts bulk inference submissions, runs each item as a background job (via the jobq module), and exposes submit/poll/cancel/results over the customer-facing /v1 surface. |
|
binding
Package binding is the domain layer for the HostBinding entity — the first-class join that declares "Model M is served by Host H, via wire adapter A, under upstream name U, priced by Pricing P."
|
Package binding is the domain layer for the HostBinding entity — the first-class join that declares "Model M is served by Host H, via wire adapter A, under upstream name U, priced by Pricing P." |
|
catalog
Package catalog is the composition layer: it pulls the entity stores together into an atomic in-memory Snapshot the request path can read in O(1).
|
Package catalog is the composition layer: it pulls the entity stores together into an atomic in-memory Snapshot the request path can read in O(1). |
|
catalog/catalogtest
Package catalogtest builds a catalog.Catalog or catalog.Snapshot from rows held in memory, for tests outside app/catalog.
|
Package catalogtest builds a catalog.Catalog or catalog.Snapshot from rows held in memory, for tests outside app/catalog. |
|
catalogembed
Package catalogembed composes manifest YAML into the SDK catalog embed schema.
|
Package catalogembed composes manifest YAML into the SDK catalog embed schema. |
|
catalogvalidate
Package catalogvalidate is the cross-entity graph linter for the catalog repo's `data/` tree.
|
Package catalogvalidate is the cross-entity graph linter for the catalog repo's `data/` tree. |
|
catalogview
Package catalogview builds consumer-facing read projections of catalog data for the admin/UX surface ("API UX"): a model's hosts, its pricing per host, the policies that grant it.
|
Package catalogview builds consumer-facing read projections of catalog data for the admin/UX surface ("API UX"): a model's hosts, its pricing per host, the policies that grant it. |
|
group
Package group is the domain layer for the Group entity — a named set of users that role bindings can name as a subject.
|
Package group is the domain layer for the Group entity — a named set of users that role bindings can name as a subject. |
|
host
Package host is the domain layer for the Host entity — a serving endpoint the relay forwards requests to.
|
Package host is the domain layer for the Host entity — a serving endpoint the relay forwards requests to. |
|
hosthealth
Package hosthealth records and reads per-host runtime reachability — the observed-state counterpart to host.Spec.
|
Package hosthealth records and reads per-host runtime reachability — the observed-state counterpart to host.Spec. |
|
hostkey
Package hostkey is the domain layer for the HostKey entity — a credential the relay uses to authenticate to a Host (a serving endpoint).
|
Package hostkey is the domain layer for the HostKey entity — a credential the relay uses to authenticate to a Host (a serving endpoint). |
|
httpapi
Package httpapi holds the HTTP layer for both Relay planes.
|
Package httpapi holds the HTTP layer for both Relay planes. |
|
httpapi/control
Package control is the admin-plane HTTP API: /auth/*, CRUD across the catalog and tenancy kinds, /version, /master-key/*, /reload.
|
Package control is the admin-plane HTTP API: /auth/*, CRUD across the catalog and tenancy kinds, /version, /master-key/*, /reload. |
|
httpapi/inference
Package inference is the data-plane HTTP API: /v1/* and /healthz.
|
Package inference is the data-plane HTTP API: /v1/* and /healthz. |
|
key
Package key is the domain layer for the Key entity — an inbound API key the relay issues to a client.
|
Package key is the domain layer for the Key entity — an inbound API key the relay issues to a client. |
|
keypool
Package keypool implements per-key circuit-breaker state and configurable Pool selection over healthy keys.
|
Package keypool implements per-key circuit-breaker state and configurable Pool selection over healthy keys. |
|
license
Package license is the license-gate seam app/ code depends on.
|
Package license is the license-gate seam app/ code depends on. |
|
manifest
Package manifest converts between the catalog's YAML/JSON wire format, which references entities by name, and the app/* domain structs, which reference them by id.
|
Package manifest converts between the catalog's YAML/JSON wire format, which references entities by name, and the app/* domain structs, which reference them by id. |
|
meta
Package meta holds the identity primitives every domain entity carries: UUIDv7 id, DNS-1123 slug name, free-text display name, and provenance.
|
Package meta holds the identity primitives every domain entity carries: UUIDv7 id, DNS-1123 slug name, free-text display name, and provenance. |
|
metricslog
Package metricslog is the Prometheus observer on the lifecycle spine.
|
Package metricslog is the Prometheus observer on the lifecycle spine. |
|
model
Package model is the domain layer for the Model entity — a container for a family of dated checkpoints (Snapshots).
|
Package model is the domain layer for the Model entity — a container for a family of dated checkpoints (Snapshots). |
|
modelref
Package modelref parses the catalog reference DSL used by Policy grants and the /catalog/resolve admin endpoint.
|
Package modelref parses the catalog reference DSL used by Policy grants and the /catalog/resolve admin endpoint. |
|
otlpreceiver
Package otlpreceiver records model calls that clients report over OpenTelemetry instead of sending through relay.
|
Package otlpreceiver records model calls that clients report over OpenTelemetry instead of sending through relay. |
|
overlay
Package overlay is the domain layer for catalog overlays: user-owned sparse spec patches applied on top of pristine catalog TEMPLATE rows to produce the EFFECTIVE rows the snapshot serves.
|
Package overlay is the domain layer for catalog overlays: user-owned sparse spec patches applied on top of pristine catalog TEMPLATE rows to produce the EFFECTIVE rows the snapshot serves. |
|
payloadlog
Package payloadlog is the second lifecycle observer (after app/usagelog): it captures the full request + response bodies of opted-in requests for audit, debug, and replay, and pushes them to a Sink (file today, S3 next) off the hot path.
|
Package payloadlog is the second lifecycle observer (after app/usagelog): it captures the full request + response bodies of opted-in requests for audit, debug, and replay, and pushes them to a Sink (file today, S3 next) off the hot path. |
|
pipeline
Package pipeline orchestrates one inference request: reserve inbound budget, acquire an upstream key (and its upstream reservation) via policy.Service, call the adapter, stream back, commit in post-flight.
|
Package pipeline orchestrates one inference request: reserve inbound budget, acquire an upstream key (and its upstream reservation) via policy.Service, call the adapter, stream back, commit in post-flight. |
|
policy
Package policy is the domain layer for the Policy entity — the named group that bundles Models (m:n), ProviderKeys (m:n), and an optional single RateLimit (m:1, the one rule set that applies to traffic through this Policy).
|
Package policy is the domain layer for the Policy entity — the named group that bundles Models (m:n), ProviderKeys (m:n), and an optional single RateLimit (m:1, the one rule set that applies to traffic through this Policy). |
|
policybinding
Package policybinding is the domain layer for the PolicyBinding entity — it points a set of subjects inside one Project at one Policy.
|
Package policybinding is the domain layer for the PolicyBinding entity — it points a set of subjects inside one Project at one Policy. |
|
pricing
Package pricing is the domain layer for the Pricing entity — a named rate sheet owned by a Host and applied to one or more Models.
|
Package pricing is the domain layer for the Pricing entity — a named rate sheet owned by a Host and applied to one or more Models. |
|
project
Package project is the domain layer for the Project entity — the unit inside a Team that owns Policies, Keys, and user-created HostKeys.
|
Package project is the domain layer for the Project entity — the unit inside a Team that owns Policies, Keys, and user-created HostKeys. |
|
provider
Package provider is the domain layer for the Provider entity — the vendor / author of a Model.
|
Package provider is the domain layer for the Provider entity — the vendor / author of a Model. |
|
proxy
Package proxy is the second inference flow: transparent forwarding of caller-supplied upstream credentials.
|
Package proxy is the second inference flow: transparent forwarding of caller-supplied upstream credentials. |
|
ratelimit
Package ratelimit is the domain layer for the RateLimit entity — a named rule set (requests / tokens / concurrency caps) attachable to a Policy, ProviderKey, or Model.
|
Package ratelimit is the domain layer for the RateLimit entity — a named rule set (requests / tokens / concurrency caps) attachable to a Policy, ProviderKey, or Model. |
|
refcheck
Package refcheck holds the cross-row write rules a row's own Validate cannot see: a referenced row must exist, be visible to the caller, and belong to a scope the referrer may draw on; owners that mirror a spec field are re-derived from it.
|
Package refcheck holds the cross-row write rules a row's own Validate cannot see: a referenced row must exist, be visible to the caller, and belong to a scope the referrer may draw on; owners that mirror a spec field are re-derived from it. |
|
role
Package role is the domain layer for the Role entity — a named set of (kinds, verbs) rules.
|
Package role is the domain layer for the Role entity — a named set of (kinds, verbs) rules. |
|
rolebinding
Package rolebinding is the domain layer for the RoleBinding entity — it grants one Role to a set of subjects at one scope (global, a Team, or a Project).
|
Package rolebinding is the domain layer for the RoleBinding entity — it grants one Role to a set of subjects at one scope (global, a Team, or a Project). |
|
routing
Package routing resolves an inbound inference request to a fully-typed RequestPlan that the pipeline can consume.
|
Package routing resolves an inbound inference request to a fully-typed RequestPlan that the pipeline can consume. |
|
secret
Package secret is the Postgres-backed implementation of pkg/secret's storage seam: the secret_values table holding AES-GCM ciphertext for the "stored" backend.
|
Package secret is the Postgres-backed implementation of pkg/secret's storage seam: the secret_values table holding AES-GCM ciphertext for the "stored" backend. |
|
seed
Package seed loads a directory of manifest YAMLs into Postgres at boot.
|
Package seed loads a directory of manifest YAMLs into Postgres at boot. |
|
serviceaccount
Package serviceaccount is the domain layer for the ServiceAccount entity — a non-human principal that lives inside a Project and holds Keys.
|
Package serviceaccount is the domain layer for the ServiceAccount entity — a non-human principal that lives inside a Project and holds Keys. |
|
session
Package session is relay's cookie session layer: the auth module's session manager over a kv.Store, so every pod sharing the store shares the sessions.
|
Package session is relay's cookie session layer: the auth module's session manager over a kv.Store, so every pod sharing the store shares the sessions. |
|
settings
Package settings is the typed-sectioned config layer.
|
Package settings is the typed-sectioned config layer. |
|
settings/settingstest
Package settingstest serves settings sections from memory for tests.
|
Package settingstest serves settings sections from memory for tests. |
|
settingswatch
Package settingswatch applies a value-typed settings section to a live consumer, re-applying whenever the section changes.
|
Package settingswatch applies a value-typed settings section to a live consumer, re-applying whenever the section changes. |
|
team
Package team is the domain layer for the Team entity — the outer tenancy scope that owns Projects.
|
Package team is the domain layer for the Team entity — the outer tenancy scope that owns Projects. |
|
tokencount
Package tokencount keeps the bytes-to-tokens ratio relay observed on real traffic, so a caller asking "how many input tokens is this prompt" can be answered from measurement when the upstream exposes no counting endpoint.
|
Package tokencount keeps the bytes-to-tokens ratio relay observed on real traffic, so a caller asking "how many input tokens is this prompt" can be answered from measurement when the upstream exposes no counting endpoint. |
|
transport/ws
Package ws is a customer-facing WebSocket transport for the inference data plane.
|
Package ws is a customer-facing WebSocket transport for the inference data plane. |
|
usagelog
Package usagelog is the first consumer of pkg/lifecycle's Hook + Collector surface.
|
Package usagelog is the first consumer of pkg/lifecycle's Hook + Collector surface. |
|
user
Package user owns the DB-backed user account: the row behind a login session.
|
Package user owns the DB-backed user account: the row behind a login session. |
|
auth
module
|
|
|
cmd
|
|
|
api-drift
command
Command api-drift reports request parameters that upstream models have stopped accepting, with the evidence for each finding.
|
Command api-drift reports request parameters that upstream models have stopped accepting, with the evidence for each finding. |
|
auth-schemas
command
Command auth-schemas writes one JSON Schema per auth-module manifest kind (Team, Project, ServiceAccount, Role, User, Group, RoleBinding) as relay registers them: relay's rule vocabulary and its own spec fields included.
|
Command auth-schemas writes one JSON Schema per auth-module manifest kind (Team, Project, ServiceAccount, Role, User, Group, RoleBinding) as relay registers them: relay's rule vocabulary and its own spec fields included. |
|
catalog-embed
command
Command catalog-embed generates the SDK's embedded default catalog from the public catalog tree.
|
Command catalog-embed generates the SDK's embedded default catalog from the public catalog tree. |
|
catalog-schemas
command
Command catalog-schemas writes one JSON Schema per catalog kind, derived from the manifest types.
|
Command catalog-schemas writes one JSON Schema per catalog kind, derived from the manifest types. |
|
catalog-validate
command
Command catalog-validate runs the catalog graph linter over a directory of YAML manifests.
|
Command catalog-validate runs the catalog graph linter over a directory of YAML manifests. |
|
icon-import
command
Command icon-import downloads provider icons listed in an OpenRouter providers dump into a directory.
|
Command icon-import downloads provider icons listed in an OpenRouter providers dump into a directory. |
|
modelsdev-import
command
Command modelsdev-import converts the models.dev dataset into relay-catalog YAML.
|
Command modelsdev-import converts the models.dev dataset into relay-catalog YAML. |
|
payload-migrate
command
Command payload-migrate copies a JSONL payload-log dump into the ClickHouse payload store, skipping rows already present.
|
Command payload-migrate copies a JSONL payload-log dump into the ClickHouse payload store, skipping rows already present. |
|
relay
command
Command relay runs the relay server (data and control planes) and its operator subcommands.
|
Command relay runs the relay server (data and control planes) and its operator subcommands. |
|
relay-stats
command
Command relay-stats prints usage events and summaries from the relay control API.
|
Command relay-stats prints usage events and summaries from the relay control API. |
|
relay/web
Package web embeds the relay-ui single-page app and serves it from the control plane.
|
Package web embeds the relay-ui single-page app and serves it from the control plane. |
|
Package config embeds the relay-internal definitions the binary must carry, so a deployment without this directory on disk still gets them.
|
Package config embeds the relay-internal definitions the binary must carry, so a deployment without this directory on disk still gets them. |
|
internal
|
|
|
config
Package config centralizes all RELAY_* env var parsing for the relay binary.
|
Package config centralizes all RELAY_* env var parsing for the relay binary. |
|
identity
Package identity owns the User catalog kind and the SecretRef resolution machinery used to pull credential material out of the environment, files, or (discouraged) inline literals — pydantic-SecretStr style.
|
Package identity owns the User catalog kind and the SecretRef resolution machinery used to pull credential material out of the environment, files, or (discouraged) inline literals — pydantic-SecretStr style. |
|
license
Package license verifies relay's offline license file.
|
Package license verifies relay's offline license file. |
|
storage
Package storage owns the Postgres connection pool and runs migrations.
|
Package storage owns the Postgres connection pool and runs migrations. |
|
jobq
module
|
|
|
migrations
|
|
|
postgres
Package pgmigrations embeds the postgres migration SQL files.
|
Package pgmigrations embeds the postgres migration SQL files. |
|
pkg
|
|
|
chttl
Package chttl keeps a ClickHouse MergeTree table's row TTL equal to a retention setting.
|
Package chttl keeps a ClickHouse MergeTree table's row TTL equal to a retention setting. |
|
clientprofile
Package clientprofile identifies which coding agent (Claude Code, Codex, OpenCode, …) is calling the relay, so the edge can serve each one the model-list shape, error wording and attribution it expects.
|
Package clientprofile identifies which coding agent (Claude Code, Codex, OpenCode, …) is calling the relay, so the edge can serve each one the model-list shape, error wording and attribution it expects. |
|
contentcoding
Package contentcoding decodes HTTP entity bodies by their Content-Encoding.
|
Package contentcoding decodes HTTP entity bodies by their Content-Encoding. |
|
crypto
Package crypto provides AES-GCM-256 encryption primitives and master-key helpers for Relay's stored-secret subsystem, plus the claim set inference tokens carry (token_claims.go; the token format itself is auth/token).
|
Package crypto provides AES-GCM-256 encryption primitives and master-key helpers for Relay's stored-secret subsystem, plus the claim set inference tokens carry (token_claims.go; the token format itself is auth/token). |
|
filter
Package filter is a declarative, allowlist-based query engine for list endpoints.
|
Package filter is a declarative, allowlist-based query engine for list endpoints. |
|
httpheader
Package httpheader holds the header sets applied at relay's HTTP edges: what is stripped from inbound requests before forwarding, what is removed from upstream responses, and what an upstream failure may carry onto the error relay writes.
|
Package httpheader holds the header sets applied at relay's HTTP edges: what is stripped from inbound requests before forwarding, what is removed from upstream responses, and what an upstream failure may carry onto the error relay writes. |
|
httpmw
Package httpmw holds net/http middleware and helpers shared by relay's listeners: request body size limits, client IP resolution behind trusted proxies, and browser security headers.
|
Package httpmw holds net/http middleware and helpers shared by relay's listeners: request body size limits, client IP resolution behind trusted proxies, and browser security headers. |
|
ids
Package ids generates immutable resource identifiers.
|
Package ids generates immutable resource identifiers. |
|
kv
Package kv is the key-value store for short-lived operational state (counters, breaker state, locks, sessions), with an in-memory backend and a Redis-protocol backend behind the same Store interface.
|
Package kv is the key-value store for short-lived operational state (counters, breaker state, locks, sessions), with an in-memory backend and a Redis-protocol backend behind the same Store interface. |
|
kv/kvtest
Package kvtest holds kv fixtures for tests: a Recording store that pins the scripts a caller runs, and (integration builds) a Redis/Valkey keyspace of its own per test on the server named by RELAY_TEST_REDIS_ADDR, so test packages run in parallel against one server despite fixed key names and prefix scans.
|
Package kvtest holds kv fixtures for tests: a Recording store that pins the scripts a caller runs, and (integration builds) a Redis/Valkey keyspace of its own per test on the server named by RELAY_TEST_REDIS_ADDR, so test packages run in parallel against one server despite fixed key names and prefix scans. |
|
lifecycle
Package lifecycle is the in-process hook registry every request-runner (pipeline, proxy, future ws/batch) fires events into.
|
Package lifecycle is the in-process hook registry every request-runner (pipeline, proxy, future ws/batch) fires events into. |
|
metrics
Package metrics owns the Prometheus registry and the /metrics HTTP handler.
|
Package metrics owns the Prometheus registry and the /metrics HTTP handler. |
|
otlp
Package otlp is the wire side of an OpenTelemetry receiver over OTLP/HTTP for the traces and logs signals: it reads and decodes export requests (protobuf and JSON), exposes their spans and log records in a neutral shape, and encodes the export response.
|
Package otlp is the wire side of an OpenTelemetry receiver over OTLP/HTTP for the traces and logs signals: it reads and decodes export requests (protobuf and JSON), exposes their spans and log records in a neutral shape, and encodes the export response. |
|
otlp/genai
Package genai maps spans and events that follow the OpenTelemetry GenAI semantic conventions to otlp.Inference records.
|
Package genai maps spans and events that follow the OpenTelemetry GenAI semantic conventions to otlp.Inference records. |
|
payload
Package payload is the storage contract for request/response body capture: the Record shape and the Sink/Reader interfaces its backends satisfy.
|
Package payload is the storage contract for request/response body capture: the Record shape and the Sink/Reader interfaces its backends satisfy. |
|
payload/clickhouse
Package clickhouse provides a ClickHouse-backed implementation of payload.Sink, payload.Reader, and payload.Closer — the "text bodies in ClickHouse" backend for the Logs view.
|
Package clickhouse provides a ClickHouse-backed implementation of payload.Sink, payload.Reader, and payload.Closer — the "text bodies in ClickHouse" backend for the Logs view. |
|
payload/dedup
Package dedup splits a JSON request body into a skeleton and content-addressed pieces, and rebuilds the exact bytes from them.
|
Package dedup splits a JSON request body into a skeleton and content-addressed pieces, and rebuilds the exact bytes from them. |
|
payload/file
Package file is the JSONL file backend for payload logging: one Record per line.
|
Package file is the JSONL file backend for payload logging: one Record per line. |
|
payload/s3
Package s3 is the object-store backend for payload logging: one JSON object per Record.
|
Package s3 is the object-store backend for payload logging: one JSON object per Record. |
|
ratelimit
Package ratelimit implements a sliding-window-counter rate limiter with a two-phase Reserve/Commit API.
|
Package ratelimit implements a sliding-window-counter rate limiter with a two-phase Reserve/Commit API. |
|
reqid
Package reqid gives each HTTP request a relay-minted ULID, echoes it as X-Relay-Request-ID, and carries it with a request-scoped logger in the context.
|
Package reqid gives each HTTP request a relay-minted ULID, echoes it as X-Relay-Request-ID, and carries it with a request-scoped logger in the context. |
|
secret
Package secret is the relay's unified secret-resolution layer: a backend-agnostic Ref pointing at a credential, and a Resolver that turns it into plaintext.
|
Package secret is the relay's unified secret-resolution layer: a backend-agnostic Ref pointing at a credential, and a Resolver that turns it into plaintext. |
|
secret/aws
Package aws resolves secret.KindAWS refs by fetching from AWS Secrets Manager.
|
Package aws resolves secret.KindAWS refs by fetching from AWS Secrets Manager. |
|
secret/azure
Package azure resolves secret.KindAzure refs by fetching from Azure Key Vault.
|
Package azure resolves secret.KindAzure refs by fetching from Azure Key Vault. |
|
secret/bitwarden
Package bitwarden resolves KindBitwarden secrets by fetching encrypted vault data from Vaultwarden/Bitwarden and decrypting client-side.
|
Package bitwarden resolves KindBitwarden secrets by fetching encrypted vault data from Vaultwarden/Bitwarden and decrypting client-side. |
|
secret/gcp
Package gcp resolves secret.KindGCP refs by fetching from GCP Secret Manager.
|
Package gcp resolves secret.KindGCP refs by fetching from GCP Secret Manager. |
|
secret/oauth
Package oauth resolves OAuth credentials for the relay's secret layer.
|
Package oauth resolves OAuth credentials for the relay's secret layer. |
|
secret/onepassword
Package onepassword resolves secret.KindOnePassword refs via the official 1Password Go SDK and a service-account token.
|
Package onepassword resolves secret.KindOnePassword refs via the official 1Password Go SDK and a service-account token. |
|
slug
Package slug derives DNS-1123-compatible identifiers from free-text display names, with deterministic collision suffixes.
|
Package slug derives DNS-1123-compatible identifiers from free-text display names, with deterministic collision suffixes. |
|
sse
Package sse holds server-sent-events helpers for the response path.
|
Package sse holds server-sent-events helpers for the response path. |
|
transport
Package transport defines the transport-agnostic Message and Channel types that carry request and response payloads between a transport and a processing pipeline.
|
Package transport defines the transport-agnostic Message and Channel types that carry request and response payloads between a transport and a processing pipeline. |
|
usage
Package usage defines the per-request usage Event, the Sink and Reader interfaces its storage backends implement, and the in-memory filtering and aggregation shared by scan-style backends.
|
Package usage defines the per-request usage Event, the Sink and Reader interfaces its storage backends implement, and the in-memory filtering and aggregation shared by scan-style backends. |
|
usage/clickhouse
Package clickhouse provides a ClickHouse-backed implementation of usage.Sink, usage.Reader, and usage.Closer.
|
Package clickhouse provides a ClickHouse-backed implementation of usage.Sink, usage.Reader, and usage.Closer. |
|
usage/file
Package file is the JSONL file backend for usage logging: a Sink that appends one event per line and a Reader that scans the same file.
|
Package file is the JSONL file backend for usage logging: a Sink that appends one event per line and a Reader that scans the same file. |
|
usage/postgres
Package postgres implements usage.Sink, usage.Reader, and usage.Closer backed by PostgreSQL.
|
Package postgres implements usage.Sink, usage.Reader, and usage.Closer backed by PostgreSQL. |
|
usage/usagetest
Package usagetest is the conformance suite every usage.Reader backend runs: one fixed event fixture, one table of queries per Reader method, and the results every backend must return for them.
|
Package usagetest is the conformance suite every usage.Reader backend runs: one fixed event fixture, one table of queries per Reader method, and the results every backend must return for them. |
|
usage/valkey
Package valkey is a TTL-bounded usage Sink + Reader backed by pkg/kv.
|
Package valkey is a TTL-bounded usage Sink + Reader backed by pkg/kv. |
|
wal
Package wal is a durable write-ahead log for asynchronous sinks.
|
Package wal is a durable write-ahead log for asynchronous sinks. |
|
Package schemas embeds the generated JSON Schemas for the manifest kinds so the relay can serve them at /api/schemas/{version}/{kind}.
|
Package schemas embeds the generated JSON Schemas for the manifest kinds so the relay can serve them at /api/schemas/{version}/{kind}. |
|
sdk
module
|
|
|
secret
module
|
Click to show internal directories.
Click to hide internal directories.