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

Method ResolveSNIPrefix

controlplane/control.go:226–226  ·  view source on GitHub ↗

translates SNI hostname prefix → canonical database_name (alias-aware) ResolveSNIPrefix maps a managed hostname prefix to its org and database. It accepts hostname_alias, database_name, and DNS-safe org names.

(prefix string)

Source from the content-addressed store, hash-verified

224 pool WorkerPool // non-nil in single-tenant process mode
225 sessions *SessionManager // non-nil in single-tenant process mode
226 rebalancer *MemoryRebalancer
227 srv *server.Server // Minimal server for cancel request routing
228 rateLimiter *server.RateLimiter
229 tlsConfig *tls.Config

Callers 2

Implementers 2

fakeConfigStorecontrolplane/sni_kubernetes_test.go
ConfigStorecontrolplane/configstore/store.go

Calls

no outgoing calls

Tested by

no test coverage detected