ipfs-chromium
|
#include <library/include/ipfs_client/ctx/gateway_config.h>
Public Member Functions | |
virtual std::optional< GatewaySpec > | GetGateway (std::size_t index) const =0 |
virtual unsigned | GetGatewayRate (std::string_view url_prefix)=0 |
virtual int | GetTypeAffinity (std::string_view url_prefix, gw::GatewayRequestType) const =0 |
virtual void | SetTypeAffinity (std::string_view url_prefix, gw::GatewayRequestType, int)=0 |
virtual void | SetGatewayRate (std::string_view url_prefix, unsigned rpm)=0 |
virtual void | AddGateway (std::string_view url_prefix, unsigned rpm)=0 |
virtual unsigned | RoutingApiDiscoveryDefaultRate () const =0 |
virtual bool | RoutingApiDiscoveryOfUnencryptedGateways () const =0 |
Configuration for IPFS gateways - which to use, how, etc.
|
pure virtual |
Position-based access (indexing)
index | The 0-based index of the gateway in question |
Implemented in ipfs::ctx::TransitoryGatewayConfig, and ipfs::ChromiumIpfsGatewayConfig.