Page MenuHomePhabricator

D3517.diff
No OneTemporary

D3517.diff

diff --git a/services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h b/services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
@@ -0,0 +1,35 @@
+#pragma once
+
+#include "ServerBidiReactorBase.h"
+
+#include "../_generated/backup.grpc.pb.h"
+#include "../_generated/backup.pb.h"
+
+#include <iostream>
+#include <memory>
+#include <string>
+
+namespace comm {
+namespace network {
+namespace reactor {
+
+class PullBackupReactor : public ServerBidiReactorBase<
+ backup::PullBackupRequest,
+ backup::PullBackupResponse> {
+public:
+ std::unique_ptr<ServerBidiReactorStatus> handleRequest(
+ backup::PullBackupRequest request,
+ backup::PullBackupResponse *response) override;
+};
+
+std::unique_ptr<ServerBidiReactorStatus> PullBackupReactor::handleRequest(
+ backup::PullBackupRequest request,
+ backup::PullBackupResponse *response) {
+ // TODO handle request
+ return std::make_unique<ServerBidiReactorStatus>(
+ grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "unimplemented"));
+}
+
+} // namespace reactor
+} // namespace network
+} // namespace comm

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 6:08 PM (20 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2500171
Default Alt Text
D3517.diff (1 KB)

Event Timeline