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;
16 std::string gateway_url;
17 gw::GatewayRequestType request_type = gw::GatewayRequestType::Zombie;
21 bool operator<(
Category const& r)
const {
22 if (cached != r.cached) {
25 if (request_type != r.request_type) {
26 return request_type < r.request_type;
28 return gateway_url < r.gateway_url;
32 Clock::time_point fetched_at = Clock::now();
33 Clock::duration load_duration = std::chrono::seconds(0);
37 void Deserialize(std::string_view);
38 std::string Serialize()
const;
Definition: block_source.h:15
Definition: block_source.h:12