libp2p/protocols/pubsub/peertable

Search:
Group by:
Source   Edit  

Types

PeerTable = Table[string, HashSet[PubSubPeer]]
Source   Edit  

Procs

proc `$`(table: PeerTable): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
func addPeer(table: var PeerTable; topic: string; peer: PubSubPeer): bool {.
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
func hasPeer(table: PeerTable; topic: string; peer: PubSubPeer): bool {.
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc hasPeerId(t: PeerTable; topic: string; peerId: PeerId): bool {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
func outboundPeers(table: PeerTable; topic: string): int {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func peers(table: PeerTable; topic: string): int {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func removePeer(table: var PeerTable; topic: string; peer: PubSubPeer) {.
    ...raises: [], tags: [], forbids: [].}
Source   Edit