Registry / networking / libp2p-go-libp2p-kbucket

libp2p-go-libp2p-kbucket

JSON →
library0.8.0gogounverified

A Kademlia k-bucket routing table implementation for libp2p, used for peer discovery and routing in peer-to-peer networks.

go get github.com/libp2p/go-libp2p-kbucket
INSTALL
IMPORT
SIG · LIBP2P-GO-LIBP2P-K
L
libp2p-go-libp2p-kbucket
networkinggov0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kbucket
github.com/libp2p/go-libp2p-kbucket

Create a new k-bucket routing table and check its size

package main import ( "fmt" "github.com/libp2p/go-libp2p-kbucket" "github.com/libp2p/go-libp2p-core/peer" ) func main() { rt, _ := kbucket.NewRoutingTable(10, kbucket.ConvertPeerID(peer.ID("test")), nil, nil) fmt.Println(rt.Size()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
libp2p-go-libp2p-kbucket — go get libp2p-go-libp2p-kbucket · libregistry