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

Method SetUserSecretLoader

controlplane/session_mgr.go:156–158  ·  view source on GitHub ↗

SetUserSecretLoader installs the per-user persistent-secret loader used at session creation (multitenant/remote backend only).

(loader func(ctx context.Context, username string) ([]string, error))

Source from the content-addressed store, hash-verified

154}
155
156// SetResourceLimitsProvider installs the dynamic org/user resource-limit lookup
157// used by the runtime limiter. The callback must be safe for concurrent use.
158func (sm *SessionManager) SetResourceLimitsProvider(fn func(username string) configstore.OrgResourceLimits) {
159 sm.mu.Lock()
160 defer sm.mu.Unlock()
161 sm.resourceLimits = fn

Callers 1

createOrgStackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected