1 #ifndef IPFS_CHROMIUM_BLOCK_SOURCE_H
2 #define IPFS_CHROMIUM_BLOCK_SOURCE_H
4 #include <ipfs_client/gw/gateway_request_type.h>
13 using Clock = std::chrono::system_clock;
18 std::string gateway_url;
19 gw::GatewayRequestType request_type = gw::GatewayRequestType::Zombie;
23 bool operator<(
Category const& r)
const {
24 if (cached != r.cached) {
27 if (request_type != r.request_type) {
28 return request_type < r.request_type;
30 return gateway_url < r.gateway_url;
34 Clock::time_point fetched_at = Clock::now();
35 Clock::duration load_duration = std::chrono::seconds(0);
39 void Deserialize(std::string_view);
40 std::string Serialize()
const;
Definition: block_source.h:17
Definition: block_source.h:12