SessionSecretLoader binds an org onto LoadStatements in the shape SessionManager.SetUserSecretLoader expects.
(orgID string)
| 103 | // SessionSecretLoader binds an org onto LoadStatements in the shape |
| 104 | // SessionManager.SetUserSecretLoader expects. |
| 105 | func (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 | } |
no test coverage detected