aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/projectstore.h')
-rw-r--r--zenserver/projectstore.h38
1 files changed, 21 insertions, 17 deletions
diff --git a/zenserver/projectstore.h b/zenserver/projectstore.h
index f30845fd1..8267bd9e0 100644
--- a/zenserver/projectstore.h
+++ b/zenserver/projectstore.h
@@ -239,23 +239,27 @@ public:
virtual void CollectGarbage(GcContext& GcCtx) override;
virtual GcStorageSize StorageSize() const override;
- CbArray GetProjectsList();
- HttpResponseCode GetProjectFiles(const std::string_view ProjectId,
- const std::string_view OplogId,
- bool FilterClient,
- CbObject& OutPayload);
- HttpResponseCode GetChunkInfo(const std::string_view ProjectId,
- const std::string_view OplogId,
- const std::string_view ChunkId,
- CbObject& OutPayload);
- HttpResponseCode GetChunk(const std::string_view ProjectId,
- const std::string_view OplogId,
- const std::string_view ChunkId,
- uint64_t Offset,
- uint64_t Size,
- ZenContentType AcceptType,
- IoBuffer& OutChunk);
- HttpResponseCode GetChunk(const std::string_view Cid, ZenContentType AcceptType, IoBuffer& OutChunk);
+ CbArray GetProjectsList();
+ std::pair<HttpResponseCode, std::string> GetProjectFiles(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ bool FilterClient,
+ CbObject& OutPayload);
+ std::pair<HttpResponseCode, std::string> GetChunkInfo(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ const std::string_view ChunkId,
+ CbObject& OutPayload);
+ std::pair<HttpResponseCode, std::string> GetChunkRange(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ const std::string_view ChunkId,
+ uint64_t Offset,
+ uint64_t Size,
+ ZenContentType AcceptType,
+ IoBuffer& OutChunk);
+ std::pair<HttpResponseCode, std::string> GetChunk(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ const std::string_view Cid,
+ ZenContentType AcceptType,
+ IoBuffer& OutChunk);
private:
spdlog::logger& m_Log;