libp2p / go-libp2p-kad-dht

A Kademlia DHT implementation on go-libp2p
https://github.com/libp2p/specs/tree/master/kad-dht
MIT License
521 stars 223 forks source link

Move coord packages to internal #933

Closed iand closed 1 year ago

iand commented 1 year ago

Moved coord and sub packages to internal to reduce API surface and allow more radical refactoring in the future.

~Need to double-check that no internal types are expected in method signatures or return values in the v2 root package~

Branched from #932 since that touched a lot of the same packages

iand commented 1 year ago

Had to move kadt back out of internal since the RoutingTable uses kadt.Key and kadt.PeerID so clients supplying their own routing table implementation need access to those types too.