Add TeamSync exchange task scaffold

This commit is contained in:
2026-06-11 22:28:35 -04:00
parent bf3c9c08e6
commit e9187609ae
3 changed files with 465 additions and 1 deletions
+5
View File
@@ -3,6 +3,7 @@
#include <cstdint>
#include <string>
#include <asio.hpp>
#include <phosg/JSON.hh>
namespace TeamSync {
@@ -13,10 +14,12 @@ struct Config {
std::string source;
std::string source_region;
std::string source_ship;
std::string team_namespace = "bb";
std::string coordinator_url;
std::string shared_secret;
uint64_t request_timeout_usecs = 3000000;
uint64_t exchange_interval_usecs = 1500000;
bool relay_team_chat = false;
bool relay_team_points = false;
@@ -29,4 +32,6 @@ void configure_from_json(const phosg::JSON& json);
bool enabled();
bool relay_team_chat_enabled();
void start_exchange_task(asio::io_context& io_context);
} // namespace TeamSync