Types
PeerTable = Table[string, HashSet[PubSubPeer]]
- Source Edit
Procs
func addPeer(table: var PeerTable; topic: string; peer: PubSubPeer): bool {. ...raises: [], tags: [].}
- Source Edit
func hasPeer(table: PeerTable; topic: string; peer: PubSubPeer): bool {. ...raises: [], tags: [].}
- Source Edit
proc hasPeerId(t: PeerTable; topic: string; peerId: PeerId): bool {....raises: [], tags: [].}
- Source Edit
func outboundPeers(table: PeerTable; topic: string): int {....raises: [], tags: [].}
- Source Edit
func removePeer(table: var PeerTable; topic: string; peer: PubSubPeer) {. ...raises: [], tags: [].}
- Source Edit