libp2p/protocols/kademlia/routingtable

Search:
Group by:
Source   Edit  

Procs

proc `$`(rt: RoutingTable): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc bucketIndex(selfId, key: Key; hasher: Opt[XorDHasher]): int {....raises: [],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc findClosest(rtable: RoutingTable; targetId: Key; count: int): seq[Key] {.
    ...raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  
proc findClosestPeerIds(rtable: RoutingTable; targetId: Key; count: int): seq[
    PeerId] {....raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  
proc insert(rtable: var RoutingTable; nodeId: Key): bool {....raises: [],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc insert(rtable: var RoutingTable; peerId: PeerId): bool {....raises: [],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc isStale(bucket: Bucket): bool {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc new(T: typedesc[RoutingTable]; selfId: Key;
         config: RoutingTableConfig = RoutingTableConfig.new()): T:type
Source   Edit  
proc new(T: typedesc[RoutingTableConfig]; replication = DefaultReplication;
         hasher: Opt[XorDHasher] = NoneHasher;
         maxBuckets: int = DefaultMaxBuckets): T:type
Source   Edit  
proc oldestPeer(bucket: Bucket): (NodeEntry, int) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc randomKeyInBucketRange(selfId: Key; bucketIndex: int;
                            rng: ref HmacDrbgContext): Key {....raises: [],
    tags: [], forbids: [].}
Source   Edit