Commit e35af2a3 authored by jan.koester's avatar jan.koester
Browse files

test

parent 793189d0
Loading
Loading
Loading
Loading
+10 −0
Changes for src/cluster.h: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -156,12 +156,22 @@ namespace authdb {
                         const uuid::uuid &uid, int dataType,
                         const AuthData *records = nullptr);

        // List all sessions from the dedicated session store (local + imported).
        struct SessionInfo {
            uuid::uuid sid, uid, did;
            std::vector<uuid::uuid> members;
            std::string username;
            std::vector<std::pair<uuid::uuid, bool>> gpo_results;
        };
        void listAllSessions(std::vector<SessionInfo> &out);

    private:
        ClusterConfig cfg_;
        std::atomic<bool> running_{false};
        std::thread server_thread_;

        std::shared_ptr<paritypp::block_store> store_;
        std::shared_ptr<paritypp::memory_block_store> session_store_; // sessions only
        std::shared_ptr<paritypp::auth_store> auth_;
        std::unique_ptr<paritypp::server> server_;