diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-15 11:13:21 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-15 11:13:21 +0200 |
commit | 1a94fb1208bf0e4c669cad16aff5f57dc0bf7a3c (patch) | |
tree | 1035116ddbaacc5fcc5ae250a6592eb88f78f75c /rtc/src/mongoStub.hpp | |
parent | Do the funny thing (make user->invite cascade delet) (diff) | |
parent | change dev panel path, we missed this one... (diff) | |
download | server-1a94fb1208bf0e4c669cad16aff5f57dc0bf7a3c.tar.xz |
Merge branch 'dev/restructure' into staging
Diffstat (limited to 'rtc/src/mongoStub.hpp')
-rw-r--r-- | rtc/src/mongoStub.hpp | 41 |
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 |