MCPcopy Create free account
hub / github.com/PostHog/duckgres / cacheProxyHealthURL

Function cacheProxyHealthURL

duckdbservice/cache_proxy.go:40–49  ·  view source on GitHub ↗

cacheProxyHealthURL returns the health endpoint URL (empty if disabled).

()

Source from the content-addressed store, hash-verified

38 // DuckDB warmup and the control-plane health RPC.
39 maxCacheProxyConnectTimeout = 10 * time.Second
40)
41
42// cacheEnabled returns true when the cache proxy integration should be used.
43func cacheEnabled() bool {
44 return os.Getenv("DUCKGRES_CACHE_ENABLED") == "true"
45}
46
47// cacheProxyHealthURL returns the health endpoint URL (empty if disabled).
48func cacheProxyHealthURL() string {
49 if !cacheEnabled() {
50 return ""
51 }
52 nodeIP := os.Getenv(nodeIPEnvVar)

Callers 3

LogCacheProxyStatusFunction · 0.85
waitForCacheProxyFunction · 0.85
TestCacheProxyHealthURLFunction · 0.85

Calls 1

cacheEnabledFunction · 0.85

Tested by 1

TestCacheProxyHealthURLFunction · 0.68