1 #ifndef IPFS_CHROMIUM_TRANSITORY_GATEWAY_CONFIG_H
2 #define IPFS_CHROMIUM_TRANSITORY_GATEWAY_CONFIG_H
4 #include "gateway_config.h"
12 std::vector<GatewaySpec> gateways_;
14 std::vector<GatewaySpec>::iterator FindGateway(std::string_view);
20 std::optional<GatewaySpec>
GetGateway(std::size_t index)
const override;
21 unsigned GetGatewayRate(std::string_view)
override;
22 void SetGatewayRate(std::string_view,
unsigned)
override;
23 void AddGateway(std::string_view,
unsigned)
override;
24 unsigned RoutingApiDiscoveryDefaultRate()
const override;
25 bool RoutingApiDiscoveryOfUnencryptedGateways()
const override;
26 int GetTypeAffinity(std::string_view url_prefix,
27 gw::GatewayRequestType)
const override;
28 void SetTypeAffinity(std::string_view url_prefix,
29 gw::GatewayRequestType,
Definition: gateway_config.h:13
Definition: transitory_gateway_config.h:11
TransitoryGatewayConfig()
std::optional< GatewaySpec > GetGateway(std::size_t index) const override