Struct rust_ipfs::IpfsOptions
source · pub struct IpfsOptions {Show 16 fields
pub ipfs_path: StorageType,
pub bootstrap: Vec<Multiaddr>,
pub relay_server_config: RelayConfig,
pub listening_addrs: Vec<Multiaddr>,
pub transport_configuration: TransportConfig,
pub swarm_configuration: SwarmConfig,
pub identify_configuration: IdentifyConfiguration,
pub pubsub_config: PubsubConfig,
pub kad_configuration: Either<KadConfig, Config>,
pub kad_store_config: KadStoreConfig,
pub ping_configuration: Config,
pub addr_config: AddressBookConfig,
pub keystore: Keystore,
pub connection_idle: Duration,
pub provider: RepoProvider,
pub span: Option<Span>,
/* private fields */
}Expand description
Ipfs node options used to configure the node to be created with UninitializedIpfs.
Fields§
§ipfs_path: StorageTypeThe path of the ipfs repo (blockstore and datastore).
This is always required but can be any path with in-memory backends. The filesystem backend creates a directory structure alike but not compatible to other ipfs implementations.
§Incompatiblity and interop warning
It is not recommended to set this to IPFS_PATH without first at least backing up your existing repository.
bootstrap: Vec<Multiaddr>Nodes used as bootstrap peers.
relay_server_config: RelayConfigRelay server config
listening_addrs: Vec<Multiaddr>Bound listening addresses; by default the node will not listen on any address.
transport_configuration: TransportConfigTransport configuration
swarm_configuration: SwarmConfigSwarm configuration
identify_configuration: IdentifyConfigurationIdentify configuration
pubsub_config: PubsubConfigPubsub configuration
kad_configuration: Either<KadConfig, Config>Kad configuration
kad_store_config: KadStoreConfigKad Store Config Note: Only supports MemoryStoreConfig at this time
ping_configuration: ConfigPing Configuration
addr_config: AddressBookConfigAddress book configuration
keystore: Keystore§connection_idle: DurationConnection idle
provider: RepoProviderRepo Provider option
span: Option<Span>The span for tracing purposes, None value is converted to tracing::trace_span!("ipfs").
All futures returned by Ipfs, background task actions and swarm actions are instrumented
with this span or spans referring to this as their parent. Setting this other than None
default is useful when running multiple nodes.