featurebase/ctl
Garrison Davis ab2b48da0d Stop using string keys in contexts
This fixes the OriginalIP and RequestUserID in the main featurebase
package, and the Access and Refresh tokens, the UserInfo, and the
[]string of Indexes passed with context.Context(s) in the authn package.

An empty struct was used for all of these keys (and relevant helper
functions we added) to avoid allocations where possible while still
using the context functionality.

Some of the logic in the server.GetIndexes function was fixed.

(cherry picked from commit 0f5a56c958)
2022-11-15 11:32:03 -08:00
..
testdata Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
auth_token.go fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
auth_token_internal_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
backup.go Stop using string keys in contexts 2022-11-15 11:32:03 -08:00
backup_tar.go Stop using string keys in contexts 2022-11-15 11:32:03 -08:00
backup_tar_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
chksum.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
cli.go drop ioutil 2022-09-30 11:25:27 -07:00
common.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
config.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
config_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
doc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
export.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
export_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
generate_config.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
generate_config_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
import.go Stop using string keys in contexts 2022-11-15 11:32:03 -08:00
import_test.go Stop using string keys in contexts 2022-11-15 11:32:03 -08:00
keygen.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
main_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
rbf_check.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
rbf_check_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
rbf_dump.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
rbf_page.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
rbf_pages.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
rbf_pages_test.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
restore.go Stop using string keys in contexts 2022-11-15 11:32:03 -08:00
restore_tar.go Stop using string keys in contexts 2022-11-15 11:32:03 -08:00
restore_tar_test.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
server.go added /sql endpoint; implemented SHOW TABLES (#1935) 2022-09-30 11:10:24 -07:00
server_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
util.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00