Libp2p class
Factory functions for creating options
Constructors
- Libp2p()
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  addrsFactory(AddrsFactory factory) → Option 
- 
  autoNAT(bool enabled) → Option 
- 
  connManager(ConnManager manager) → Option 
- 
  eventBus(EventBus bus) → Option 
- 
  holePunching(bool enabled) → Option 
- 
  identifyDisableObservedAddrManager(bool disable) → Option 
- 
  identifyDisableSignedPeerRecord(bool disable) → Option 
- 
  identifyProtocolVersion(String version) → Option 
- 
  identifyUserAgent(String agent) → Option 
- 
  identity(KeyPair keyPair) → Option 
- Configures libp2p to use the given identity (private key).
- 
  listenAddrs(List< MultiAddr> addrs) → Option
- Configures libp2p to listen on the given addresses.
- 
  muxer(String id, Multiplexer muxerFactory(Conn secureConn, bool isClient)) → Option 
- Configures libp2p to use the given stream multiplexer.
- 
  natManager(NATManager factory(Network)) → Option 
- 
  negotiationTimeout(Duration timeout) → Option 
- 
  new_(List< Option> options) → Future<Host> 
- Creates a new libp2p node with the given options.
- 
  newConfig() → Config 
- Creates a new Config instance.
- 
  noSecurity() → Option 
- Configures libp2p to use no security (insecure connections).
- 
  ping(bool enabled) → Option 
- Configures libp2p to enable/disable the Ping service.
- 
  protocolVersion(String version) → Option 
- Configures libp2p to use the given protocol version.
- 
  relay(bool enabled) → Option 
- 
  security(SecurityProtocol securityProtocol) → Option 
- Configures libp2p to use the given security protocol.
- 
  transport(Transport transport) → Option 
- Configures libp2p to use the given transport.
- 
  userAgent(String agent) → Option 
- Configures libp2p to use the given user agent.