libp2p/peerinfo

    Dark Mode
Search:
Group by:
  Source   Edit

Our local peer info

Types

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