memgraph/src/distributed/data_rpc_server.hpp

18 lines
372 B
C++
Raw Normal View History

#pragma once
#include "communication/rpc/server.hpp"
#include "database/graph_db.hpp"
namespace distributed {
/// Serves this worker's data to others.
class DataRpcServer {
public:
DataRpcServer(database::GraphDb &db, communication::rpc::Server &server);
private:
database::GraphDb &db_;
communication::rpc::Server &rpc_server_;
};
} // namespace distributed