1 #ifndef IPFS_CHROMIUM_GATEWAY_CONFIG_H
2 #define IPFS_CHROMIUM_GATEWAY_CONFIG_H
4 #include <ipfs_client/gateway_spec.h>
16 virtual std::optional<GatewaySpec> GetGateway(std::size_t index)
const = 0;
17 virtual unsigned GetGatewayRate(std::string_view url_prefix) = 0;
18 virtual int GetTypeAffinity(std::string_view url_prefix,
19 gw::GatewayRequestType)
const = 0;
20 virtual void SetTypeAffinity(std::string_view url_prefix,
21 gw::GatewayRequestType,
27 virtual void SetGatewayRate(std::string_view url_prefix,
unsigned rpm) = 0;
28 virtual void AddGateway(std::string_view url_prefix,
unsigned rpm) = 0;
31 virtual unsigned RoutingApiDiscoveryDefaultRate()
const = 0;
32 virtual bool RoutingApiDiscoveryOfUnencryptedGateways()
const = 0;
Definition: gateway_config.h:13