Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Latest commit

 

History

History
77 lines (48 loc) · 2.58 KB

README.md

File metadata and controls

77 lines (48 loc) · 2.58 KB

go-ipfs-routing

standard-readme compliant Build Status

go-ipfs-routing provides go-libp2p-routing implementations used in go-ipfs.

❗ This repo is no longer maintained.

👉 We highly recommend switching to the maintained version at https://github.com/ipfs/boxo/tree/main/routing. 🏎️ Good news! There is tooling and documentation to expedite a switch in your repo.

⚠️ If you continue using this repo, please note that security fixes will not be provided (unless someone steps in to maintain it).

📚 Learn more, including how to take the maintainership mantle or ask questions, here.

Table of Contents

Install

go-ipfs-routing works like a set of regular Go packages:

> go get github.com/ipfs/go-ipfs-routing/...

This module uses Gx to manage dependencies. You can use make all to build it with the gx dependencies.

Usage

This repo contains 3 different packages.

Mock

GoDoc

import "github.com/ipfs/go-ipfs-routing/mock"

Mock is a fake router useful for tests. It provides a mock client that implements the IpfsRouting interface and a mock server from which the client retrieves routing records.

Offline

GoDoc

import "github.com/ipfs/go-ipfs-routing/offline"

Offline is an offline router that can put and get records to and from a local Datastore but can't retrieve them from the network.

None

GoDoc

import "github.com/ipfs/go-ipfs-routing/none"

None is a router no-op router that doesn't do anything. Puts always succeed and lookups always fail.

License

MIT © Protocol Labs, Inc.