Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,391 in github.com/JuliusBrussee/caveman
⨍
Functions
12,391
◇
Types & classes
1,304
↳
Endpoints
5
Method
ListSessionObjects
(sessionID string, limit int)
engine/ccr/store_generation.go:243
Method
LookupReplacement
LookupReplacement returns the replacement bytes this proxy previously emitted for these exact original bytes, plus the CCR handle they disclose. It im
proxy/internal/store/prefix_cache.go:38
Method
LookupReplacement
(scope string, original []byte)
proxy/internal/gateway/prefix_stability_test.go:52
Method
MapProviderError
MapProviderError maps a Bedrock error response to a ProviderError, preferring the AWS x-amzn-errortype header (e.g. ThrottlingException, ValidationExc
proxy/providers/bedrock/usage.go:646
Method
MarshalJSON
()
engine/pixel/transform_gemini.go:379
Method
MarshalJSON
()
engine/pixel/transform_gemini.go:438
Method
MarshalJSON
()
engine/pixel/transform_gemini.go:471
Method
MatchMetadataRequest
MatchMetadataRequest claims /anthropic/v1/models always, but the bare v1/models spelling only from Anthropic wire-protocol callers: every Anthropic SD
proxy/providers/anthropic/anthropic.go:51
Method
MatchMetadataRequest
MatchMetadataRequest is the OpenAI half of the bare /v1/models split (see anthropic.Adapter.MatchMetadataRequest): /openai/v1/models is always OpenAI,
proxy/providers/openai/openai.go:23
Method
MatchMetadataRoute
MatchMetadataRoute reports whether this is a read-only provider metadata request (see Base.MetadataRoutes). GET only: a write verb on a metadata mount
proxy/providers/adapter.go:530
Method
MatchMetadataRoute
MatchMetadataRoute mirrors MatchRoute: validate the decoded path spelling first, then consult the GET-only metadata allowlist.
proxy/providers/openaicompat/openaicompat.go:233
Method
MatchOAuthTokenRoute
MatchOAuthTokenRoute reports whether this is a request to the provider's OAuth token endpoint (see Base.OAuthTokenRoutes).
proxy/providers/adapter.go:556
Method
MatchRoute
(method string, path string)
proxy/providers/gemini/gemini.go:86
Method
MatchRoute
MatchRoute rejects path spellings whose decoded form could claim a different compatibility mount than the caller sent. The gateway performs the same c
proxy/providers/openaicompat/openaicompat.go:37
Method
MatchRoute
(method, path string)
proxy/providers/openaicompat/openaicompat.go:224
Method
MiddlewareBacklog
(ctx context.Context, now int64)
proxy/internal/store/middleware_postgres.go:335
Method
MiddlewareBacklog
(ctx context.Context, now int64)
proxy/internal/store/middleware.go:562
Method
MiddlewareKeys
(ctx context.Context)
proxy/internal/store/middleware_postgres.go:317
Method
MiddlewareKeys
(ctx context.Context)
proxy/internal/store/middleware.go:544
Method
MiddlewareUsage
(ctx context.Context)
proxy/internal/store/middleware_postgres.go:312
Method
MiddlewareUsage
MiddlewareUsage reports the whole store's admitted rows and bytes.
proxy/internal/store/middleware.go:539
Method
MiddlewareWritable
(ctx context.Context)
proxy/internal/middleware/hardening_test.go:172
Method
MiddlewareWritable
MiddlewareWritable assigns a transaction id, which a read-only or recovering (standby) server refuses, without touching a middleware row.
proxy/internal/store/middleware_postgres.go:305
Method
MiddlewareWritable
MiddlewareWritable proves the store accepts a write: it rewrites one existing row in a transaction and commits, so a read-only file, a full disk or a
proxy/internal/store/middleware.go:531
Method
Name
()
engine/engine_test.go:18
Method
Name
()
engine/tokens/tokens.go:43
Method
Name
()
engine/tokens/tokens.go:66
Method
Name
()
proxy/providers/adapter.go:508
Method
Name
()
proxy/internal/middleware/counter.go:28
Function
NewSpanID
()
shared/platform/id/id.go:33
Method
NewUsageScanner
NewUsageScanner returns a Bedrock-aware usage scanner so streamed (converse-stream / invoke-with-response-stream) responses are parsed with the same c
proxy/providers/bedrock/usage.go:47
Function
NewWithReceipts
(store *ccr.Store, receiptDir string)
proxy/internal/nativeruntime/runtime.go:173
Method
Now
Now is wall time: a laptop that slept must see the hours it slept, which the monotonic reading does not count.
proxy/internal/gateway/cache_warm.go:83
Method
Observe
Observe queues one event for a recorded request. It never blocks.
proxy/internal/cloudlink/events.go:94
Method
Observe
(rec RequestRecord)
proxy/internal/gateway/route_test.go:98
Function
Open
Open opens (creating if needed) the SQLite database at path and migrates the schema. Use ":memory:" for an ephemeral store (tests, the eval harness).
engine/ccr/store_sqlite.go:280
Function
OpenMemory
OpenMemory opens an ephemeral in-memory store.
engine/ccr/store_sqlite.go:628
Method
Original
Original returns a stored original and its key id; sql.ErrNoRows when the authority holds no content for digest.
proxy/internal/store/middleware_originals.go:60
Method
Original
(authority, digest string)
proxy/internal/store/middleware_postgres.go:738
Method
Originals
Middleware originals are stored once per (authority, digest): the row is both the exact original a grant recovers and the unique-content credit. A row
proxy/internal/store/middleware_originals.go:17
Method
Originals
Originals takes the authority's lock in a write transaction: SaveOriginals decides on what it returns.
proxy/internal/store/middleware_postgres.go:690
Method
ParseCountTokens
(response []byte)
proxy/providers/gemini/count_tokens.go:26
Method
ParseCountTokens
(response []byte)
proxy/providers/bedrock/count_tokens.go:21
Method
ParseCountTokens
(response []byte)
proxy/providers/anthropic/count_tokens.go:26
Method
ParseCountTokens
(response []byte)
proxy/providers/openai/count_tokens.go:40
Method
ParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:801
Method
ParseUsage
ParseUsage extracts token usage from a Bedrock response. Bedrock reports usage in two shapes depending on the operation: - Converse / ConverseStream:
proxy/providers/bedrock/usage.go:33
Method
Persistent
Persistent is false for the browser's in-memory store.
engine/ccr/store_wasm.go:49
Method
Persistent
Persistent distinguishes durable exact recovery from an in-memory test store.
engine/ccr/store_sqlite.go:128
Method
Persistent
()
proxy/internal/store/middleware_postgres.go:63
Method
Persistent
Persistent reports whether this store retains middleware choices on restart.
proxy/internal/store/store.go:427
Method
Plan
(scope, id, digest string, now int64)
proxy/internal/store/middleware_postgres.go:413
Method
Plan
(scope, id, digest string, now int64)
proxy/internal/store/middleware.go:608
Method
PlanCacheBreakpoints
PlanCacheBreakpoints places Anthropic prompt-cache breakpoints on the upstream request. cache_control is provider metadata the model never sees, so th
proxy/providers/anthropic/breakpoint_plan.go:63
Method
PlanCacheBreakpoints
PlanCacheBreakpoints sets a per-session prompt_cache_key. OpenAI 5.6+ dropped the fallback to the longest unmarked prefix, so cache routing is load-b
proxy/providers/openai/session_cache_key.go:47
Method
Put
(rec Recovery)
engine/ccr/store_generation.go:213
Method
PutObject
(obj Object)
engine/ccr/store_generation.go:225
Method
Read
(p []byte)
proxy/internal/translate/wire_gaps_test.go:1124
Method
Read
(p []byte)
proxy/internal/gateway/chatgpt_auto.go:504
Method
Read
(p []byte)
proxy/internal/gateway/route_test.go:435
Method
Read
([]byte)
proxy/internal/gateway/compress_test.go:95
Method
Read
(p []byte)
proxy/internal/gateway/chatgpt.go:669
Method
Read
(p []byte)
proxy/internal/gateway/chatgpt_test.go:633
Function
ReadEmbeddedFixture
ReadEmbeddedFixture reads one built-in fixture file.
engine/evals/harness.go:174
Method
ReadMiddleware
(ctx context.Context, fn func(*store.MiddlewareTx) error)
proxy/internal/middleware/hardening_test.go:324
Method
ReadMiddleware
(ctx context.Context, fn func(*MiddlewareTx) error)
proxy/internal/store/middleware_postgres.go:276
Method
ReadMiddleware
ReadMiddleware takes a consistent snapshot without reserving SQLite's writer. Callers must recheck every decision under WithMiddleware before publishi
proxy/internal/store/middleware.go:480
Method
Ready
(context.Context)
proxy/cmd/caveman-proxy/main.go:461
Method
Receipt
(authority, id, digest string, body []byte, expires int64)
proxy/internal/store/middleware_postgres.go:670
Method
Receipt
(authority, id, digest string, body []byte, expires int64)
proxy/internal/store/middleware.go:899
Method
Record
(gateway.RequestRecord)
proxy/internal/cloudlink/e2e_test.go:38
Method
Record
(rec gateway.RequestRecord)
proxy/internal/standalone/standalone_test.go:692
Method
Record
(record gateway.RequestRecord)
proxy/internal/standalone/provider_stream_test.go:23
Method
Record
(gateway.RequestRecord)
proxy/internal/store/prefix_stability_e2e_test.go:62
Method
Record
(rec RequestRecord)
proxy/internal/gateway/server_test.go:63
Method
Record
(RequestRecord)
proxy/internal/gateway/hotpath_bench_test.go:124
Method
Record
(row RequestRecord)
proxy/internal/gateway/recorder_test.go:162
Method
RecordBatch
RecordBatch persists rows in one transaction (gateway.BatchSink): the rows Record would write, with one commit. If the transaction cannot be used, eac
proxy/internal/store/store.go:504
Method
RecordPayload
RecordPayload stores raw request payloads only for explicit trial labels. The database file is chmod 0600 by Open; payloads are never included in repo
proxy/internal/store/trial_store.go:43
Method
RefusesAll
RefusesAll reports that the provider routes refuse every request, so the listener serves the middleware only (see gateway /health/ready).
proxy/internal/standalone/standalone.go:66
Method
Reload
(bool)
proxy/internal/standalone/principal_sources_test.go:168
Method
RememberReplacement
RememberReplacement durably records original→replacement and returns the authoritative bytes for that original. Storage is first-write-wins: if anothe
proxy/internal/store/prefix_cache.go:65
Method
RememberReplacement
(scope string, original, replacement []byte, handle string)
proxy/internal/gateway/prefix_stability_test.go:65
Method
Renew
Renew is SQLite's, plus length(manifest)>0: a scope the sweep purged while this replica's clock still called it live stays purged.
proxy/internal/store/middleware_postgres.go:480
Method
Renew
Renew slides every live scope of an authority to now+retention, never past created_at+maxRetention. Scopes with no created_at (written by an older run
proxy/internal/store/middleware.go:685
Method
Resolve
(string, *http.Request)
proxy/internal/cloudlink/e2e_test.go:28
Method
Resolve
(string, *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:56
Method
Resolve
(string, *http.Request)
proxy/internal/store/prefix_stability_openai_e2e_test.go:48
Method
Resolve
(_ string, r *http.Request)
proxy/internal/gateway/route_test.go:225
Method
Resolve
(provider string, r *http.Request)
proxy/internal/gateway/server_test.go:48
Method
Resolve
(provider string, r *http.Request)
proxy/internal/gateway/auth_fallback_test.go:22
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:568
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route providers.RouteContext)
proxy/providers/gemini/gemini.go:24
Method
ResolveUpstreamURL
ResolveUpstreamURL removes only the default public /compat mount before resolving the provider path. Named adapters and the reserved legacy routes kee
proxy/providers/openaicompat/openaicompat.go:58
Method
ResolveUpstreamURL
ResolveUpstreamURL intentionally ignores RouteContext.BaseURL. Named mounts are configured as independent static upstreams (`compat:` in standalone or
proxy/providers/openaicompat/openaicompat.go:470
Method
ResolveUpstreamURL
ResolveUpstreamURL validates either the legacy deployment route or the current Foundry Models v1 inference route before resolving upstream.
proxy/providers/azureopenai/azure_routing.go:31
Method
ResolveUpstreamURL
ResolveUpstreamURL validates the Vertex request shape (publisher + model on the allowlist), enforces SSRF/host constraints against the aiplatform endp
proxy/providers/vertex/routing.go:32
Method
ResolveUpstreamURL
(ctx context.Context, r *http.Request, route providers.RouteContext)
proxy/internal/gateway/upstream_bounds_test.go:113
Function
Restrict
Restrict gives home an owner-only DACL (this user, SYSTEM, Administrators) when it grants anything to anyone else. Windows ignores the 0700 the direct
proxy/internal/securehome/securehome_windows.go:25
Method
Retrieve
(string)
mcp/engine_tools_retrieve_test.go:120
← previous
next →
8,101–8,200 of 12,391, ranked by callers