Skip to content

Improve API #126

@flcl42

Description

@flcl42

The following things need improvement:

  • Add service provider in the builder setup chain
  • Hide peer store under interface
  • Add multiaddress helpers to filter out local addresses;
  • Propose simple ways of detecting public IP (heuristics based on peer data retrieved from peers? public service request?)
  • Consider implementing an async disposable pattern by PeerStore, PubsubRouter, *DiscoveryProtocols
  • WithPubsub or AddPubsub?
  • Make peer configurable: connection timeout
  • Make reconnection management replaceable and customizable
  • Pass token to dial/connect of session protocols. Cancel if protocol is not instantiated yet, otherwise protocol should react to the cancellation
  • Reveal sessions in ILocalPeer interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions