Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var ErrLookupFailure = errors.New("failed to find any peer in table") + func Closer(a, b peer.ID, key u.Key) bool + func SortClosestPeers(peers []peer.ID, target ID) []peer.ID + type Bucket struct + func (b *Bucket) Has(id peer.ID) bool + func (b *Bucket) Len() int + func (b *Bucket) MoveToFront(id peer.ID) + func (b *Bucket) Peers() []peer.ID + func (b *Bucket) PopBack() peer.ID + func (b *Bucket) PushFront(p peer.ID) + func (b *Bucket) Remove(id peer.ID) + func (b *Bucket) Split(cpl int, target ID) *Bucket + type ID []byte + func ConvertKey(id u.Key) ID + func ConvertPeerID(id peer.ID) ID + type RoutingTable struct + Buckets []*Bucket + func NewRoutingTable(bucketsize int, localID ID, latency time.Duration, m peer.Metrics) *RoutingTable + func (rt *RoutingTable) Find(id peer.ID) peer.ID + func (rt *RoutingTable) ListPeers() []peer.ID + func (rt *RoutingTable) NearestPeer(id ID) peer.ID + func (rt *RoutingTable) NearestPeers(id ID, count int) []peer.ID + func (rt *RoutingTable) Print() + func (rt *RoutingTable) Remove(p peer.ID) + func (rt *RoutingTable) Size() int + func (rt *RoutingTable) Update(p peer.ID)