36 lines
1.3 KiB
Markdown
Raw Normal View History

2018-02-20 11:25:46 +00:00
interface-content-routing
=====================
2019-10-18 14:20:29 +02:00
**WIP: This module is not yet implemented**
2018-02-20 11:25:46 +00:00
> A test suite and interface you can use to implement a Content Routing module for libp2p.
The primary goal of this module is to enable developers to pick and swap their Content Routing module as they see fit for their libp2p installation, without having to go through shims or compatibility issues. This module and test suite were heavily inspired by abstract-blob-store and interface-stream-muxer.
Publishing a test suite as a module lets multiple modules all ensure compatibility since they use the same test suite.
# Modules that implement the interface
- [JavaScript libp2p-kad-dht](https://github.com/libp2p/js-libp2p-kad-dht)
- [JavaScript libp2p-delegated-content-routing](https://github.com/libp2p/js-libp2p-delegated-content-routing)
2018-02-20 11:25:46 +00:00
# Badge
Include this badge in your readme if you make a module that is compatible with the interface-content-routing API. You can validate this by running the tests.
![](https://raw.githubusercontent.com/libp2p/interface-content-routing/master/img/badge.png)
# How to use the battery of tests
## Node.js
2019-10-18 14:20:29 +02:00
TBD
2018-02-20 11:25:46 +00:00
# API
A valid (read: that follows this abstraction) Content Routing module must implement the following API.
2018-02-20 11:25:46 +00:00
### `.findProviders`
### `.provide`