Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gandalf
command
Gandalf is a high-performance LLM gateway that unifies multiple providers behind an OpenAI-compatible API.
|
Gandalf is a high-performance LLM gateway that unifies multiple providers behind an OpenAI-compatible API. |
|
Package gateway defines domain types and interfaces for the Gandalf LLM gateway.
|
Package gateway defines domain types and interfaces for the Gandalf LLM gateway. |
|
app
Package app implements application-level services for the Gandalf LLM gateway.
|
Package app implements application-level services for the Gandalf LLM gateway. |
|
auth
Package auth implements API key authentication for the Gandalf gateway.
|
Package auth implements API key authentication for the Gandalf gateway. |
|
cache
Package cache provides response caching for the gateway.
|
Package cache provides response caching for the gateway. |
|
circuitbreaker
Package circuitbreaker implements a per-provider circuit breaker with a sliding-window error rate detector.
|
Package circuitbreaker implements a per-provider circuit breaker with a sliding-window error rate detector. |
|
cloudauth
Package cloudauth provides http.RoundTripper decorators that inject authentication headers for cloud-hosted LLM providers (direct API keys, GCP OAuth, Azure Entra).
|
Package cloudauth provides http.RoundTripper decorators that inject authentication headers for cloud-hosted LLM providers (direct API keys, GCP OAuth, Azure Entra). |
|
config
Package config provides configuration loading and database bootstrapping.
|
Package config provides configuration loading and database bootstrapping. |
|
provider
Package provider contains shared utilities for LLM provider adapters.
|
Package provider contains shared utilities for LLM provider adapters. |
|
provider/anthropic
Package anthropic implements the gateway.Provider adapter for the Anthropic API.
|
Package anthropic implements the gateway.Provider adapter for the Anthropic API. |
|
provider/gemini
Package gemini implements the gateway.Provider adapter for the Google Gemini API.
|
Package gemini implements the gateway.Provider adapter for the Google Gemini API. |
|
provider/ollama
Package ollama implements the gateway.Provider and gateway.NativeProxy adapters for local Ollama instances.
|
Package ollama implements the gateway.Provider and gateway.NativeProxy adapters for local Ollama instances. |
|
provider/openai
Package openai implements the gateway.Provider adapter for the OpenAI API.
|
Package openai implements the gateway.Provider adapter for the OpenAI API. |
|
provider/sseutil
Package sseutil provides shared SSE line reading utilities for provider adapters.
|
Package sseutil provides shared SSE line reading utilities for provider adapters. |
|
ratelimit
Package ratelimit implements per-key RPM and TPM rate limiting with lazy-refill token buckets.
|
Package ratelimit implements per-key RPM and TPM rate limiting with lazy-refill token buckets. |
|
server
Package server implements the HTTP transport layer for the Gandalf gateway.
|
Package server implements the HTTP transport layer for the Gandalf gateway. |
|
storage
Package storage defines persistence interfaces for the gateway.
|
Package storage defines persistence interfaces for the gateway. |
|
storage/sqlite
Package sqlite implements the storage interfaces using SQLite via modernc.org/sqlite.
|
Package sqlite implements the storage interfaces using SQLite via modernc.org/sqlite. |
|
telemetry
Package telemetry provides observability primitives for the Gandalf gateway.
|
Package telemetry provides observability primitives for the Gandalf gateway. |
|
testutil
Package testutil provides configurable test fakes for gateway interfaces.
|
Package testutil provides configurable test fakes for gateway interfaces. |
|
tokencount
Package tokencount provides token estimation for TPM rate limiting and usage recording.
|
Package tokencount provides token estimation for TPM rate limiting and usage recording. |
|
worker
Package worker provides background task infrastructure for the gateway.
|
Package worker provides background task infrastructure for the gateway. |
Click to show internal directories.
Click to hide internal directories.