aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/jupiter.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-18 22:49:45 +0200
committerStefan Boberg <[email protected]>2021-05-18 22:50:15 +0200
commitd38a000ffd19d404d9f93a0f56a6c8be04ef258d (patch)
treec5ced3ce194cbb1c888ce5b142b3e3cc2ca9df24 /zenserver/upstream/jupiter.h
parentMerge branch 'main' of https://github.com/EpicGames/zen into main (diff)
downloadzen-d38a000ffd19d404d9f93a0f56a6c8be04ef258d.tar.xz
zen-d38a000ffd19d404d9f93a0f56a6c8be04ef258d.zip
Partial implementation of Jupiter chunk filtering, pending more information about response format
Also implemented compact binary PUT
Diffstat (limited to 'zenserver/upstream/jupiter.h')
-rw-r--r--zenserver/upstream/jupiter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/zenserver/upstream/jupiter.h b/zenserver/upstream/jupiter.h
index dd01cfb86..5bcec2904 100644
--- a/zenserver/upstream/jupiter.h
+++ b/zenserver/upstream/jupiter.h
@@ -8,6 +8,7 @@
#include <atomic>
#include <list>
#include <memory>
+#include <vector>
namespace zen {
namespace detail {
@@ -17,6 +18,7 @@ namespace detail {
class IoBuffer;
class CloudCacheClient;
struct IoHash;
+class CbObjectView;
/**
* Cached access token, for use with `Authorization:` header
@@ -47,8 +49,10 @@ public:
CloudCacheSession(CloudCacheClient* OuterClient);
~CloudCacheSession();
- IoBuffer Get(std::string_view BucketId, std::string_view Key);
- void Put(std::string_view BucketId, std::string_view Key, IoBuffer Data);
+ IoBuffer Get(std::string_view BucketId, std::string_view Key);
+ void Put(std::string_view BucketId, std::string_view Key, IoBuffer Data);
+ void Put(std::string_view BucketId, std::string_view Key, CbObjectView Data);
+ std::vector<IoHash> Filter(std::string_view BucketId, const std::vector<IoHash>& ChunkHashes);
private:
RefPtr<CloudCacheClient> m_CacheClient;