ConfigOptions extension

Extension methods for Config options

on

Methods

withAddrsFactory(AddrsFactory factory) Future<void>

Available on Config, provided by the ConfigOptions extension

withAutoNAT(bool enabled) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to enable/disable the AutoNAT service.
withConnManager(ConnManager manager) Future<void>

Available on Config, provided by the ConfigOptions extension

withEventBus(EventBus bus) Future<void>

Available on Config, provided by the ConfigOptions extension

withHolePunching(bool enabled) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to enable/disable the Hole Punching service.
withIdentifyDisableObservedAddrManager(bool disable) Future<void>

Available on Config, provided by the ConfigOptions extension

withIdentifyDisableSignedPeerRecord(bool disable) Future<void>

Available on Config, provided by the ConfigOptions extension

withIdentifyProtocolVersion(String version) Future<void>

Available on Config, provided by the ConfigOptions extension

withIdentifyUserAgent(String agent) Future<void>

Available on Config, provided by the ConfigOptions extension

withIdentity(KeyPair keyPair) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given identity (private key).
withListenAddrs(List<MultiAddr> addrs) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given addresses.
withMuxer(String id, Multiplexer muxerFactory(Conn secureConn, bool isClient)) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given stream multiplexer.
withNatManager(NATManager factory(Network)) Future<void>

Available on Config, provided by the ConfigOptions extension

withNegotiationTimeout(Duration timeout) Future<void>

Available on Config, provided by the ConfigOptions extension

withNoSecurity() Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use no security (insecure connections).
withPing(bool enabled) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to enable/disable the Ping service.
withProtocolVersion(String version) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given protocol version.
withRelay(bool enabled) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to enable/disable the Relay service.
withSecurity(SecurityProtocol securityProtocol) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given security protocol.
withTransport(Transport transport) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given transport.
withUserAgent(String agent) Future<void>

Available on Config, provided by the ConfigOptions extension

Configures libp2p to use the given user agent.