kubo/docs/examples
Hector Sanjuan 23f1b59177 corehttp/routing: wire GetClosestPeers()
This allows Kubo to respond to the GetClosestPeers() http routing v1 endpoint
as spec'ed here: https://github.com/ipfs/specs/pull/476

It is based on work from https://github.com/ipfs/boxo/pull/1021

We let IpfsNode implmement the contentRouter.Client interface with the new
method.  We use our DHTs to get the closest peers. We try to respect the
count/closerThan options here.  We then trigger FindPeers lookups to fill-in
information about the peers (addresses) and return the result.

Tests are missing and will come up once discussions around the spec and the
boxo pr have settled.
2025-10-16 10:59:42 +02:00
..
example-folder Cosmetic fixups in examples (#8325) 2021-08-27 11:55:26 -04:00
kubo-as-a-library corehttp/routing: wire GetClosestPeers() 2025-10-16 10:59:42 +02:00
go-ipfs-as-a-library chore: update kubo-as-a-library example 2022-07-25 16:48:52 +02:00