libp2p/peerinfo

    Dark Mode
Search:
Group by:
  Source   Edit

Our local peer info

Types

AddressMapper = proc (listenAddrs: seq[MultiAddress]): Future[seq[MultiAddress]] {.
    ...gcsafe, raises: [].}
  Source   Edit
PeerInfo {.public.} = ref object
  peerId*: PeerId
  listenAddrs*: seq[MultiAddress]
  addrs: seq[MultiAddress]
  addressMappers*: seq[AddressMapper]
  protocols*: seq[string]
  protoVersion*: string
  agentVersion*: string
  privateKey*: PrivateKey
  publicKey*: PublicKey
  signedPeerRecord*: SignedPeerRecord
  Source   Edit
PeerInfoError = object of LPError
  Source   Edit

Procs

proc addrs(p: PeerInfo): seq[MultiAddress] {....raises: [], public, ...tags: [].}
  Source   Edit
proc fullAddrs(p: PeerInfo): MaResult[seq[MultiAddress]] {....raises: [], public,
    ...tags: [RootEffect].}
  Source   Edit
proc new(p: typedesc[PeerInfo]; key: PrivateKey;
         listenAddrs: openArray[MultiAddress] = [];
         protocols: openArray[string] = []; protoVersion: string = "";
         agentVersion: string = ""; addressMappers = newSeq[AddressMapper]()): PeerInfo {.
    ...raises: [LPError], raises: [], public.}
  Source   Edit
proc parseFullAddress(ma: MultiAddress): MaResult[(PeerId, MultiAddress)] {.
    ...raises: [], public, ...tags: [RootEffect].}
  Source   Edit
proc parseFullAddress(ma: string | seq[byte]): MaResult[(PeerId, MultiAddress)] {.
    ...raises: [], public.}
  Source   Edit
func shortLog(p: PeerInfo): auto {....raises: [], public, ...tags: [RootEffect].}
  Source   Edit
proc update(p: PeerInfo): Future[void] {.stackTrace: false, ...gcsafe, raises: [],
    raises: [], public, ...raises: [], public, ...tags: [RootEffect].}
  Source   Edit

Templates

template formatItIMPL(it: PeerInfo): auto
  Source   Edit

Exports

formatItIMPL, init, safeConvert, getField, shortLog, >=, shortLog, getBytes, compilesOr, init, public, shortLog, PeerId, ==, toBytes, <=, match, random, write, init, hex, init, validate, hash, init, init, $, hasPublicKey, match, <, write, >, len, maxInlineKeyLength, exceptionToAssert, cmp, extractPublicKey, DNS_OR_IP, contains, hash, data, UDP_DNS, MaError, IPFS, getField, MaPatternOp, isEmpty, WS_DNS, initVBuffer, ProtoScalar, getProtoHeader, ProtoHeader, hex, protocols, bytes, ==, getLen, HTTPS, UNIX, TranscoderIP6, encode, IpTransportProtocol, init, ProtoField, peekVarint, mapOr, writeSeq, &, DNS6, TranscoderDNS, QUIC, toOpenArray, [], [], IP4, TranscoderPort, isEnough, safeConvert, getRequiredField, $, WS_IP, public, MAKind, getField, checkFieldNumber, TranscoderOnion3, getRepeatedField, matchPartial, MaResult, match, WebSockets_DNS, WebSockets, MaInvalidAddress, isEmpty, HTTP, finish, VBuffer, init, TcpOnion3, initProtoBuffer, MAProtocol, peekSeq, getPackedRepeatedField, getProtoHeader, $, IP, getField, protoAddress, DNS4, readArray, getPtr, P2PPattern, exceptionToAssert, isEnough, Reliable, ProtoBuffer, len, WS, CircuitRelay, mapAnd, UDP_IP, DNSANY, DNSADDR, append, write, WSS_IP, peekArray, WSS, getRepeatedField, TCP_IP, getField, writePacked, Unreliable, TCP_DNS, init, protoName, protoArgument, validate, mapEq, Onion3, MaPattern, initProtoBuffer, concat, TranscoderP2P, WSS_DNS, writeLPVarint, write, ProtoResult, readSeq, WebRTCDirect, len, UDP, TranscoderIP6Zone, MaPatResult, TranscoderOnion, write, init, shortLog, isEmpty, writeArray, write, init, UTP, [], IP6, shortLog, initVBuffer, ProtoFlags, getRequiredRepeatedField, WebSockets_IP, finish, writePBVarint, ProtoFieldKind, TCP, protoArgument, getRepeatedField, ProtoError, init, init, getField, MultiAddress, &=, readVarint, compilesOr, vsizeof, TranscoderIP4, init, initVBuffer, protoCode, $, initProtoBuffer, DNS, items, write, TranscoderUnix, high, toString, writeVarint, SupportedWireTypes, Signature, decodeProposal, shortLog, toBytes, DigestSheme, init, write, sign, SupportedSchemesInt, macOpenArray, supported, Secret, $, ephemeral, selectBest, init, getBytes, safeConvert, init, createExchange, init, getBytes, public, toRawBytes, init, getField, init, toBytes, libp2p_pki_schemes, random, random, createProposal, init, write, write, key, newRng, getBytes, getPublicKey, getRawBytes, init, random, stretchKeys, exceptionToAssert, init, init, init, getField, iv, ==, verify, init, SupportedSchemes, toBytes, shuffle, CryptoError, ==, ECDHEScheme, mac, write, random, keyOpenArray, CryptoResult, ephemeral, init, init, shortLog, init, PublicKey, shortLog, PKScheme, init, init, PrivateKey, write, ivOpenArray, RsaDefaultKeySize, compilesOr, orError, decodeExchange, $, goffset, getOrder, KeyPair, init, DNS_OR_IP, ==, ProtoHeader, shortLog, init, random, UDP_DNS, getProtoHeader, MaError, ephemeral, MaPatternOp, WS_DNS, initVBuffer, <=, decodeProposal, ==, getLen, ECDHEScheme, shortLog, init, [], shuffle, random, init, Secret, peekVarint, payload, $, validate, mapOr, init, bytes, maxInlineKeyLength, TranscoderDNS, QUIC, getRequiredField, stretchKeys, libp2p_pki_schemes, WS_IP, getBytes, public, MAKind, write, write, init, checkFieldNumber, init, getRepeatedField, matchPartial, getBytes, ==, init, HTTP, initVBuffer, finish, write, payloadType, getProtoHeader, init, $, IP, protoAddress, MaPattern, newRng, checkValid, getPublicKey, CircuitRelay, len, exceptionToAssert, extractPublicKey, mapAnd, UDP_IP, init, ==, DNSADDR, write, PeerId, WSS, TCP_IP, writePacked, init, init, toBytes, TCP_DNS, encode, len, init, protoName, toRawBytes, $, initProtoBuffer, WSS_DNS, match, writeLPVarint, CryptoResult, ProtoResult, WebRTCDirect, init, $, UDP, TranscoderOnion, write, init, finish, isEmpty, writeArray, [], IP6, shortLog, initVBuffer, ProtoFlags, PKScheme, random, write, init, TCP, PrivateKey, getBytes, write, init, &=, random, compilesOr, TranscoderIP4, init, $, initProtoBuffer, DNS, goffset, getRawBytes, >, KeyPair, init, DNSANY, high, toString, cmp, SupportedWireTypes, formatItIMPL, Signature, toBytes, DigestSheme, IPFS, getField, init, isEmpty, ProtoScalar, hex, protocols, verify, HTTPS, UNIX, WebSockets, getPtr, TranscoderIP6, init, encode, supported, MaResult, init, ProtoField, toBytes, writeSeq, &, DNS6, [], IpTransportProtocol, toOpenArray, init, IP4, TranscoderPort, isEnough, safeConvert, getField, key, createExchange, >=, init, payloadDomain, init, TranscoderOnion3, SignedPayload, toBytes, protoArgument, peekSeq, mac, keyOpenArray, init, match, TranscoderIP6Zone, WebSockets_DNS, $, isEmpty, getRequiredRepeatedField, init, initProtoBuffer, MAProtocol, decode, getPackedRepeatedField, contains, data, init, getField, DNS4, readArray, selectBest, write, P2PPattern, Envelope, hasPublicKey, decode, init, isEnough, init, ephemeral, Reliable, hex, write, WS, encode, init, getField, match, getField, <, iv, CryptoError, getField, append, WSS_IP, peekArray, PeerRecord, init, SupportedSchemes, getRepeatedField, getField, hash, Unreliable, SupportedSchemesInt, random, macOpenArray, validate, mapEq, getField, init, Onion3, TcpOnion3, concat, TranscoderP2P, AddressInfo, sign, write, EnvelopeError, readSeq, encode, len, createProposal, MaPatResult, ProtoBuffer, decode, shortLog, init, write, getBytes, write, init, UTP, readVarint, PublicKey, WebSockets_IP, VBuffer, writePBVarint, ProtoFieldKind, protoArgument, getRepeatedField, ProtoError, init, getField, MultiAddress, ivOpenArray, RsaDefaultKeySize, orError, vsizeof, decodeExchange, getField, protoCode, MaInvalidAddress, writeVarint, items, write, getOrder, hash, TranscoderUnix, SignedPeerRecord, toException, toException, allFuturesThrowing, tryAndWarn, checkFutures, LPError