package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Closer returns true if a is closer to key than b is.
No description provided by the author
ConvertKey creates a DHT ID by hashing a local key (String).
ConvertPeerID creates a DHT ID by hashing a Peer ID (Multihash).
NewRoutingTable creates a new routing table with a given bucketsize, local ID, and latency tolerance.
Sort the given peers by their ascending distance from the target.

# Variables

Returned if a routing table query returns no results.
No description provided by the author
No description provided by the author

# Structs

PeerInfo holds all related information for a peer in the K-Bucket.
RoutingTable defines the routing table.

# Type aliases

ID for IpfsDHT is in the XORKeySpace The type dht.ID signifies that its contents have been hashed from either a peer.ID or a util.Key.