mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-07 07:41:06 +00:00
docs: update and polish the readme
This commit is contained in:
parent
27c3f27aa8
commit
bc661cbdc4
12
README.md
12
README.md
@ -13,13 +13,15 @@ The API is presented with both Node.js and Go primitives, however, there is not
|
|||||||
|
|
||||||
# Modules that implement the interface
|
# Modules that implement the interface
|
||||||
|
|
||||||
- https://github.com/libp2p/js-libp2p-kad-routing
|
- [JavaScript libp2p-kad-dht](https://github.com/libp2p/js-libp2p-kad-dht)
|
||||||
|
- [JavaScript libp2p-delegated-peer-routing](https://github.com/libp2p/js-libp2p-delegated-peer-routing)
|
||||||
|
- [JavaScript libp2p-kad-routing](https://github.com/libp2p/js-libp2p-kad-routing)
|
||||||
|
|
||||||
# Badge
|
# Badge
|
||||||
|
|
||||||
Include this badge in your readme if you make a module that is compatible with the interface-record-store API. You can validate this by running the tests.
|
Include this badge in your readme if you make a module that is compatible with the interface-record-store API. You can validate this by running the tests.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
# How to use the battery of tests
|
# How to use the battery of tests
|
||||||
|
|
||||||
@ -44,13 +46,13 @@ tests(tape, common)
|
|||||||
|
|
||||||
## Go
|
## Go
|
||||||
|
|
||||||
> WIP
|
> WIP - The go-libp2p implementation does not have a test suite to be used, yet.
|
||||||
|
|
||||||
# API
|
# API
|
||||||
|
|
||||||
A valid (read: that follows this abstraction) stream muxer, must implement the following API.
|
A valid (read: that follows this abstraction) Peer Routing module must implement the following API.
|
||||||
|
|
||||||
### Find peers 'responsible' or 'closest' to a given key
|
### `.findPeers` - Find peers 'responsible' or 'closest' to a given key
|
||||||
|
|
||||||
- `Node.js` peerRouting.findPeers(key, function (err, peersPriorityQueue) {})
|
- `Node.js` peerRouting.findPeers(key, function (err, peersPriorityQueue) {})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user