OrgRouterInterface abstracts the org router for the control plane.
| 252 | |
| 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) |
| 259 | metadataPostgresConnect func(context.Context, string) (metadataPostgresConn, error) |
| 260 | metadataSessions *metadataProxySessionRegistry |
| 261 | proxyCancels sync.Map |
| 262 | } |
| 263 | |
| 264 | // ConfigStoreInterface abstracts the config store for the control plane. |
| 265 | // Defined here to avoid circular imports with the configstore package. |
no outgoing calls
no test coverage detected