ipfs-chromium
|
#include <library/include/ipfs_client/ctx/transitory_gateway_config.h>
Public Member Functions | |
std::optional< GatewaySpec > | GetGateway (std::size_t index) const override |
unsigned | GetGatewayRate (std::string_view) override |
void | SetGatewayRate (std::string_view, unsigned) override |
void | AddGateway (std::string_view, unsigned) override |
unsigned | RoutingApiDiscoveryDefaultRate () const override |
bool | RoutingApiDiscoveryOfUnencryptedGateways () const override |
int | GetTypeAffinity (std::string_view url_prefix, gw::GatewayRequestType) const override |
void | SetTypeAffinity (std::string_view url_prefix, gw::GatewayRequestType, int) override |
TransitoryGatewayConfig () | |
Takes the place of a configuration, but it's not persisted
ipfs::ctx::TransitoryGatewayConfig::TransitoryGatewayConfig | ( | ) |
Loads gateways from IPFS_GATEWAY environment or a static list
|
overridevirtual |
Position-based access (indexing)
index | The 0-based index of the gateway in question |
Implements ipfs::ctx::GatewayConfig.