internal/

directory
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: AGPL-3.0

README

internal

Core implementation packages for Starport (OSS only).

Private packages not exposed to external consumers.

Directories

Path Synopsis
Package account owns the account identity that holds gateway API keys, limits, and a provider credential policy.
Package account owns the account identity that holds gateway API keys, limits, and a provider credential policy.
Package apikey owns gateway API keys and their persistence.
Package apikey owns gateway API keys and their persistence.
Package app owns Starport production composition and lifecycle.
Package app owns Starport production composition and lifecycle.
Package audit owns the durable trail of admin mutations: the record, the actor vocabulary, and the retention window.
Package audit owns the durable trail of admin mutations: the record, the actor vocabulary, and the retention window.
Package authmode owns whether the gateway requires a gateway API key.
Package authmode owns whether the gateway requires a gateway API key.
Package availability owns runtime state for exact provider offerings.
Package availability owns runtime state for exact provider offerings.
Package blob stores opaque byte objects under opaque keys.
Package blob stores opaque byte objects under opaque keys.
Package cache provides a multi-layer caching system for LLM responses with in-memory and persistent storage backends.
Package cache provides a multi-layer caching system for LLM responses with in-memory and persistent storage backends.
Package catalog owns Starport's immutable view of Starmap facts and the separately versioned runtime availability used to derive routable models.
Package catalog owns Starport's immutable view of Starmap facts and the separately versioned runtime availability used to derive routable models.
logos
Package logos serves the bundled catalog identity marks.
Package logos serves the bundled catalog identity marks.
view
Package view owns the console- and API-facing projections of one routable catalog snapshot.
Package view owns the console- and API-facing projections of one routable catalog snapshot.
Package cli owns Starport command contracts and process-independent execution.
Package cli owns Starport command contracts and process-independent execution.
Package config provides configuration management for Starport.
Package config provides configuration management for Starport.
Package console provides the embedded web console for operating a Starport gateway: playground chat, the Starmap model catalog, provider status, key management, and gateway settings.
Package console provides the embedded web console for operating a Starport gateway: playground chat, the Starmap model catalog, provider status, key management, and gateway settings.
Package credentials owns encrypted provider credentials and their durable repository.
Package credentials owns encrypted provider credentials and their durable repository.
cloudchain
Package cloudchain resolves renewable cloud credential material for inference.
Package cloudchain resolves renewable cloud credential material for inference.
Package diagnosis owns read-only startup checks for Starport.
Package diagnosis owns read-only startup checks for Starport.
Package doclinks verifies local destinations in Markdown documents.
Package doclinks verifies local destinations in Markdown documents.
Package document turns an attached document into text inside this process.
Package document turns an attached document into text inside this process.
Package events owns the gateway's outbound webhook surface: the event names, the signed envelope, and delivery to configured endpoints with bounded retry.
Package events owns the gateway's outbound webhook surface: the event names, the signed envelope, and delivery to configured endpoints with bounded retry.
Package execution owns attempt state, retry and fallback budgets, and the response-byte commitment boundary for inference execution.
Package execution owns attempt state, retry and fallback budgets, and the response-byte commitment boundary for inference execution.
Package failure owns normalized inference failure semantics.
Package failure owns normalized inference failure semantics.
Package files owns the record of a stored file: who owns it, what it is called, what it is for, how large it is, and when it stops being readable.
Package files owns the record of a stored file: who owns it, what it is called, what it is for, how large it is, and when it stops being readable.
Package guardrails owns the policy check contract this gateway runs against canonical requests and responses.
Package guardrails owns the policy check contract this gateway runs against canonical requests and responses.
Package identity owns the humans a deployment knows: users, the teams they form, and the memberships that tie them together.
Package identity owns the humans a deployment knows: users, the teams they form, and the memberships that tie them together.
Package inference owns provider-neutral inference values and stream events.
Package inference owns provider-neutral inference values and stream events.
Package jobs owns work that outlives the request that started it.
Package jobs owns work that outlives the request that started it.
Package limits owns the request-rate and consumption vocabulary that bounds what a holder may spend.
Package limits owns the request-rate and consumption vocabulary that bounds what a holder may spend.
Package localauth owns the local operator credential.
Package localauth owns the local operator credential.
Package presets owns reusable inference configuration presets and persistence.
Package presets owns reusable inference configuration presets and persistence.
protocol
mediaform
Package mediaform reads one media request that arrived as multipart form data.
Package mediaform reads one media request that arrived as multipart form data.
openai
Package openai adapts the OpenAI HTTP protocol to canonical inference values.
Package openai adapts the OpenAI HTTP protocol to canonical inference values.
openrouter
Package openrouter adapts the OpenRouter HTTP protocol to canonical inference values.
Package openrouter adapts the OpenRouter HTTP protocol to canonical inference values.
Package providers owns the projection from operator inference settings to compiled adapter configuration.
Package providers owns the projection from operator inference settings to compiled adapter configuration.
auth
Package auth applies catalog-declared authentication primitives to provider inference requests.
Package auth applies catalog-declared authentication primitives to provider inference requests.
connectors
Package connectors provides interfaces and types for LLM provider integrations
Package connectors provides interfaces and types for LLM provider integrations
keyring
Package keyring stores and resolves the provider credentials a request can spend.
Package keyring stores and resolves the provider credentials a request can spend.
state
Package state projects safe provider runtime state from its concept owners.
Package state projects safe provider runtime state from its concept owners.
statuspage
Package statuspage observes provider service incidents from each provider's own published health API.
Package statuspage observes provider service incidents from each provider's own published health API.
Package proxy provides a high-performance LLM request proxy with support for multiple providers, intelligent routing, caching, and extensible middleware.
Package proxy provides a high-performance LLM request proxy with support for multiple providers, intelligent routing, caching, and extensible middleware.
Package ratelimit owns fixed-window rate-limit state and persistence.
Package ratelimit owns fixed-window rate-limit state and persistence.
Package registry manages LLM provider connectors
Package registry manages LLM provider connectors
Package repotest supplies storage backends for repository contract tests.
Package repotest supplies storage backends for repository contract tests.
response
cache
Package cache owns response-cache eligibility, semantic identity, versioned canonical records, and stream replay.
Package cache owns response-cache eligibility, semantic identity, versioned canonical records, and stream replay.
Package router provides model routing and fallback capabilities for the Starport gateway.
Package router provides model routing and fallback capabilities for the Starport gateway.
Package routing plans deterministic provider attempts from immutable inputs.
Package routing plans deterministic provider attempts from immutable inputs.
Package server provides HTTP server implementation for Starport.
Package server provides HTTP server implementation for Starport.
controllers
Package controllers contains HTTP handlers for the Starport API.
Package controllers contains HTTP handlers for the Starport API.
dto
Package dto owns shared administrative HTTP response values.
Package dto owns shared administrative HTTP response values.
requestctx
Package requestctx defines typed request context values shared by the server middleware and HTTP controllers.
Package requestctx defines typed request context values shared by the server middleware and HTTP controllers.
Package setup owns safe first-run initialization for a local Starport instance.
Package setup owns safe first-run initialization for a local Starport instance.
Package sqlstore owns Starport's relational storage contract.
Package sqlstore owns Starport's relational storage contract.
Package storage provides a key-value storage abstraction layer with support for multiple backend implementations including embedded and distributed stores.
Package storage provides a key-value storage abstraction layer with support for multiple backend implementations including embedded and distributed stores.
Package telemetry owns the gateway's observability export vocabulary: the Prometheus metric names, their labels, and the mapping from a completed request's usage record onto them.
Package telemetry owns the gateway's observability export vocabulary: the Prometheus metric names, their labels, and the mapping from a completed request's usage record onto them.
Package tokenize owns gateway-side token estimation.
Package tokenize owns gateway-side token estimation.
Package usage owns the canonical per-request usage record: what one inference request consumed, where it ran, and what it cost.
Package usage owns the canonical per-request usage record: what one inference request consumed, where it ran, and what it cost.

Jump to

Keyboard shortcuts

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