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

Method StackForOrg

controlplane/control.go:255–255  ·  view source on GitHub ↗
(orgID string)

Source from the content-addressed store, hash-verified

253 // computeMeter accumulates per-org compute-usage and flushes it to the
254 // durable buffer (remote/k8s backend with billing config only; nil
255 // otherwise — every call site is nil-safe). The leader-only drain loop that
256 // ships buffered usage to PostHog is wired separately in SetupMultiTenant.
257 computeMeter *computeMeter
258 metadataPostgresURL func(context.Context, string) (string, error)

Callers 5

ImpersonateMethod · 0.65
StackForOrgMethod · 0.65
CreateSessionMethod · 0.65
ReconnectSessionMethod · 0.65
handleConnectionMethod · 0.65

Implementers 4

mockOrgRoutercontrolplane/org_router_test_helpers_t
reconnectTestOrgRoutercontrolplane/flight_ingress_test.go
recordingOrgRoutercontrolplane/flight_ingress_test.go
orgRouterAdaptercontrolplane/multitenant.go

Calls

no outgoing calls

Tested by

no test coverage detected