ipfs-chromium
|
#include <component/preferences.h>
Public Member Functions | |
ChromiumIpfsGatewayConfig (PrefService *) | |
unsigned | GetGatewayRate (std::string_view) override |
void | SetGatewayRate (std::string_view, unsigned) override |
std::optional< GatewaySpec > | GetGateway (std::size_t index) const 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 |
Configuration of gateways using Chromium preferences
|
overridevirtual |
Position-based access (indexing)
index | The 0-based index of the gateway in question |
Implements ipfs::ctx::GatewayConfig.