Directories
¶
| Path | Synopsis |
|---|---|
|
Package actor carries the identity of the caller making a request.
|
Package actor carries the identity of the caller making a request. |
|
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. |
|
Package adapters names the wire protocol the relay speaks to an upstream.
|
Package adapters names the wire protocol the relay speaks to an upstream. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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." |
|
Snapshot assembly.
|
Snapshot assembly. |
|
Package catalogembed composes manifest YAML into the SDK catalog embed schema.
|
Package catalogembed composes manifest YAML into the SDK catalog embed schema. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
Package httpapi holds the HTTP layer for both Relay planes.
|
Package httpapi holds the HTTP layer for both Relay planes. |
|
control
POST /apply uses the same loader as the boot seed (app/apply), so a CI apply and a boot seed of the same tree converge on the same rows.
|
POST /apply uses the same loader as the boot seed (app/apply), so a CI apply and a boot seed of the same tree converge on the same rows. |
|
inference
Package inference's Dispatch is the shape-agnostic per-request flow.
|
Package inference's Dispatch is the shape-agnostic per-request flow. |
|
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. |
|
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. |
|
Package license is the license-gate seam app/ code depends on.
|
Package license is the license-gate seam app/ code depends on. |
|
Package wire handles conversion between the operator-facing YAML/JSON wire format and the domain structs in the app/* entity packages.
|
Package wire handles conversion between the operator-facing YAML/JSON wire format and the domain structs in the app/* entity packages. |
|
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. |
|
Package metricslog is the Prometheus observer on the lifecycle spine.
|
Package metricslog is the Prometheus observer on the lifecycle spine. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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 references live in spec JSONB, which Postgres FKs do not cover, so both row-removing writers (the API delete cascade and apply's prune) share this cleanup.
|
Policy references live in spec JSONB, which Postgres FKs do not cover, so both row-removing writers (the API delete cascade and apply's prune) share this cleanup. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
PolicyAllowsBinding answers "would Resolve route this Model over this binding under this Policy?" — the per-binding decision inventory endpoints need, without picking a key.
|
PolicyAllowsBinding answers "would Resolve route this Model over this binding under this Policy?" — the per-binding decision inventory endpoints need, without picking a key. |
|
agent.go implements pipeline.KeyAgent: the out-of-band handler for failed upstream keys.
|
agent.go implements pipeline.KeyAgent: the out-of-band handler for failed upstream keys. |
|
Package seed loads a directory of manifest YAMLs into Postgres at boot.
|
Package seed loads a directory of manifest YAMLs into Postgres at boot. |
|
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. |
|
Package session wraps alexedwards/scs/v2 with a kv.Store-backed session store and the small amount of glue that turns scs payloads into our app/actor.Actor.
|
Package session wraps alexedwards/scs/v2 with a kv.Store-backed session store and the small amount of glue that turns scs payloads into our app/actor.Actor. |
|
Package settings is the typed-sectioned config layer.
|
Package settings is the typed-sectioned config layer. |
|
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. |
|
Budget lives here rather than in a third package because Team is the outer scope; app/project imports it.
|
Budget lives here rather than in a third package because Team is the outer scope; app/project imports it. |
|
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. |
|
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. |
|
store.go is the data-access layer for User.
|
store.go is the data-access layer for User. |
Click to show internal directories.
Click to hide internal directories.