Add TeamSync exchange task scaffold
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user