summary refs log tree commit diff
path: root/rtc/src/mongoStub.hpp
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 18:24:21 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 23:35:18 +1000
commitf44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 (patch)
treea6655c41bb3db79c30fd876b06ee60fe9cf70c9b /rtc/src/mongoStub.hpp
parentAllow edited_timestamp to passthrough in handleMessage (diff)
downloadserver-f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052.tar.xz
Refactor to mono-repo + upgrade packages
Diffstat (limited to 'rtc/src/mongoStub.hpp')
-rw-r--r--rtc/src/mongoStub.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/rtc/src/mongoStub.hpp b/rtc/src/mongoStub.hpp
deleted file mode 100644

index 2809142f..00000000 --- a/rtc/src/mongoStub.hpp +++ /dev/null
@@ -1,41 +0,0 @@ -#ifndef MONGOSTUB_HPP -#define MONGOSTUB_HPP - -#include <boost/utility.hpp> -#include <cstdint> -#include <iostream> -#include <vector> -#include <mongocxx/client.hpp> -#include <mongocxx/instance.hpp> -#include <mongocxx/change_stream.hpp> -#include <bsoncxx/json.hpp> -#include <bsoncxx/document/element.hpp> - - -class mongoStub{ - public: - mongoStub(); - - struct mongoMessage{ - std::string eventName; - std::vector<std::string> data; - }; - - std::vector<mongoMessage> getNewMessages(mongocxx::change_stream* colCs); - - mongocxx::collection getCol() const { return col; } - - - - private: - mongocxx::instance instance; - mongocxx::client client{mongocxx::uri{}}; - mongocxx::database db; - mongocxx::collection col; - mongocxx::change_stream* colCs = nullptr; - - void handleUdpRequest(std::string address, int port, std::string mode); - void handleVoiceRequest(); -}; - -#endif