/
uzer_007
/
reindexer
Обзор
Документация
Войти
/
uzer_007
/
reindexer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cpp_src/core/proxycallback.h
28 строк
683 B
APl
Update to version v5.6.0
29 авг 2025, 17:01
29 авг 2025, 17:01
0a131de
Код
Авторство
О чём код?
#pragma once #include <estl/fast_hash_map.h> #include <unordered_map> #include <variant> #include "tools/errors.h" namespace reindexer { class RdxContext; } namespace reindexer::proxycb { enum class [[nodiscard]] Type { kSharding, kCluster, }; enum class [[nodiscard]] ActionType { kApplyShardingConfig, kNone, }; const fast_hash_map<std::string_view, std::pair<Type, ActionType>> kActions = { {"apply_sharding_config", {Type::kSharding, ActionType::kApplyShardingConfig}}}; using CallbackFT = std::function<Error(ActionType actionType, std::string_view info, const RdxContext& ctx)>; using CallbackMap = fast_hash_map<Type, CallbackFT>; } // namespace reindexer::proxycb