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

Method SessionSecretLoader

controlplane/user_secrets.go:105–109  ·  view source on GitHub ↗

SessionSecretLoader binds an org onto LoadStatements in the shape SessionManager.SetUserSecretLoader expects.

(orgID string)

Source from the content-addressed store, hash-verified

103// SessionSecretLoader binds an org onto LoadStatements in the shape
104// SessionManager.SetUserSecretLoader expects.
105func (m *CPUserSecretManager) SessionSecretLoader(orgID string) func(ctx context.Context, username string) ([]string, error) {
106 return func(ctx context.Context, username string) ([]string, error) {
107 return m.LoadStatements(ctx, orgID, username)
108 }
109}

Callers 1

createOrgStackMethod · 0.80

Calls 1

LoadStatementsMethod · 0.95

Tested by

no test coverage detected