continue os refactor, start with fs backend

This commit is contained in:
2024-04-09 12:09:21 +02:00
parent 26d07b06db
commit 0610a6a64a
5 changed files with 300 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include "../object_store.hpp"
namespace backend {
struct FilesystemStorage : public StorageBackendI {
FilesystemStorage(ObjectStore2& os);
~FilesystemStorage(void);
bool write(Object o, std::function<write_to_storage_fetch_data_cb>& data_cb) override;
bool read(Object o, std::function<read_from_storage_put_data_cb>& data_cb) override;
//// convenience function
//nlohmann::json loadFromStorageNJ(FragmentID fid);
};
} // backend