ipfs-chromium
Public Member Functions | List of all members
ipfs::ChromiumIpfsGatewayConfig Class Referencefinal

#include <component/preferences.h>

Inheritance diagram for ipfs::ChromiumIpfsGatewayConfig:
Inheritance graph
[legend]
Collaboration diagram for ipfs::ChromiumIpfsGatewayConfig:
Collaboration graph
[legend]

Public Member Functions

 ChromiumIpfsGatewayConfig (PrefService *)
 
unsigned GetGatewayRate (std::string_view) override
 
void SetGatewayRate (std::string_view, unsigned) override
 
std::optional< GatewaySpecGetGateway (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
 

Detailed Description

Configuration of gateways using Chromium preferences

Member Function Documentation

◆ GetGateway()

std::optional<GatewaySpec> ipfs::ChromiumIpfsGatewayConfig::GetGateway ( std::size_t  index) const
overridevirtual

Position-based access (indexing)

Parameters
indexThe 0-based index of the gateway in question
Returns
The spec for the gateway iff index < count of gateways, nullopt otherwise

Implements ipfs::ctx::GatewayConfig.


The documentation for this class was generated from the following file: