internal/

directory
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0

Directories

Path Synopsis
Package bounded provides a size-bounded, TTL-aware key→value map for the gateway's per-instance affinity records and its in-process shared-state store.
Package bounded provides a size-bounded, TTL-aware key→value map for the gateway's per-instance affinity records and its in-process shared-state store.
Package breaker implements a per-upstream circuit breaker: N consecutive failures open the circuit; a single probe is admitted after the half-open interval, and its outcome closes or re-opens the circuit.
Package breaker implements a per-upstream circuit breaker: N consecutive failures open the circuit; a single probe is admitted after the half-open interval, and its outcome closes or re-opens the circuit.
Package cache is a small TTL cache with single-flight refresh, used for upstream list results.
Package cache is a small TTL cache with single-flight refresh, used for upstream list results.
Package doclint extracts the link graph from the repository's Markdown so a test can assert it resolves.
Package doclint extracts the link graph from the repository's Markdown so a test can assert it resolves.
Package kubediscovery produces fold's discovery document from Kubernetes Services: list Services matching a label selector on an interval, map them to upstream entries via annotations, validate with fold's own config package, and serve {"upstreams": [...]} for the gateway's discovery.url to poll.
Package kubediscovery produces fold's discovery document from Kubernetes Services: list Services matching a label selector on an interval, map them to upstream entries via annotations, validate with fold's own config package, and serve {"upstreams": [...]} for the gateway's discovery.url to poll.
Package ratelimit implements a sliding-window request limiter.
Package ratelimit implements a sliding-window request limiter.
Package state abstracts the gateway's shared runtime state — rate-limit windows, circuit-breaker state, and list caches — behind interfaces with two providers: in-process (default) and Redis (set REDIS_URL or server.redisUrl), which makes a fleet of gateway instances behave as one.
Package state abstracts the gateway's shared runtime state — rate-limit windows, circuit-breaker state, and list caches — behind interfaces with two providers: in-process (default) and Redis (set REDIS_URL or server.redisUrl), which makes a fleet of gateway instances behave as one.
Package stdiobridge exposes a stdio MCP server over streamable HTTP.
Package stdiobridge exposes a stdio MCP server over streamable HTTP.

Jump to

Keyboard shortcuts

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