libp2p/upgrademngrs/upgrade

Search:
Group by:
Source   Edit  

Types

libp2p_failed_upgrades_incoming = IgnoredCollector
Source   Edit  
libp2p_failed_upgrades_outgoing = IgnoredCollector
Source   Edit  
Upgrade = ref object of RootObj
  ms*: MultistreamSelect
  secureManagers*: seq[Secure]
Source   Edit  
UpgradeFailedError = object of LPError
Source   Edit  

Procs

proc secure(self: Upgrade; conn: RawConn; peerId: Opt[PeerId]): InternalRaisesFuture[
    SecureConn, (CancelledError, LPError)] {....stackTrace: false, raises: [],
    gcsafe, gcsafe, raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  

Methods

method upgrade(self: Upgrade; conn: RawConn; peerId: Opt[PeerId]): InternalRaisesFuture[
    Muxer, (CancelledError, LPError)] {.base, ...stackTrace: false, raises: [],
                                        gcsafe, gcsafe, raises: [], tags: [],
                                        forbids: [].}
Source   Edit  

Exports

ConnManager, waitForPeerReady, PeerEventKind, untagPeer, addPeerEventHandler, PeerEventHandler, selectMuxer, contains, AlreadyExpectingConnectionError, expectConnection, connCount, tagPeerDecaying, addConnEventHandler, WatermarkPolicy, maxInOut, contains, PeerEvent, getStream, maxTotal, close, availableSlots, trackMuxer, getOutgoingSlot, release, unprotect, maxConnections, ConnectionLimits, removeConnEventHandler, getStream, DecayFn, tagPeer, getStream, getIncomingSlot, ConnEventKind, new, decayFixed, getConnections, removePeerEventHandler, isProtected, ConnEvent, ConnEventHandler, decayNone, triggerConnEvent, triggerPeerEvents, PeerScoring, storeMuxer, TooManyConnectionsError, trackConnection, bumpDecayingTag, decayLinear, removeDecayingTag, connectedPeers, selectMuxer, dropPeer, protect, peerScore, ConnectionSlot, DNS_OR_IP, shortLog, init, random, UDP_DNS, $, MaError, libp2p_network_bytes, writeField, ephemeral, replaceIp, MaPatternOp, ==, WS_DNS, initVBuffer, <=, MaxSizeError, decode, ==, shortLog, filterIt, ECDHEScheme, shortLog, hash, supportsPacked, writeField, init, closed, [], shuffle, random, init, Secret, peekVarint, payload, $, validate, mapOr, chroniclesFormatItIMPL, init, Memory, bytes, publicRoutableAddressPolicy, getPubKey, maxInlineKeyLength, TranscoderDNS, QUIC, writeField, [], init, ephemeral, withValue, PeerInfoObserver, getIp, generateBytes, WS_IP, write, MAKind, decode, getBytes, write, decode, init, noPrivateAddressPolicy, getRepeatedField, generate, matchPartial, getBytes, len, areAddrsConsistent, init, readLp, HTTP, initVBuffer, atEof, LPStreamTrackerName, removeObserver, peekSeq, update, TCP_IP4, toOpt, join, fullAddrs, payloadType, LPStreamError, init, IP, protoAddress, QUIC_V1_IP, newRng, ==, shortLog, withValue, checkValid, getPublicKey, chroniclesFormatItIMPL, libp2p_multiaddress_exts, WebSockets, readFieldInto, getPart, CircuitRelay, extractPublicKey, mapAnd, new, maErr, computeFieldSize, UDP_IP, newLPStreamEOFError, init, random, ==, DNSADDR, AddressMapper, write, notifyObservers, WSS, QUIC_V1, TCP_IP, close, init, closeImpl, toCidString, readSeq, toBytes, TCP_DNS, closeWrite, shortLog, wasResetLocally, encode, UDP_IP4, len, capLen, init, protoName, protoArgument, toRawBytes, supportsPacked, $, writeField, TCP_IP6, init, DNS, WSS_DNS, match, writeLPVarint, CryptoResult, LPStream, parseFullAddress, WebRTCDirect, PeerAddressPolicy, init, $, UDP, PeerInfo, TranscoderOnion, StreamTracker, defaultAddressPolicy, init, LPStreamResetError, writeArray, LPStreamIncompleteError, PeerId, >, [], LPStreamEOFError, IP6, shortLog, reset, initVBuffer, PKScheme, random, stretchKeys, accepts, addObserver, Connection, write, init, generate, TCP, PrivateKey, readFieldInto, write, init, RawConn, &=, PeerInfoError, newBearSslRng, verify, newLPStreamClosedError, random, TranscoderMemory, toString, TranscoderIP4, init, toException, init, goffset, getRawBytes, pick, KeyPair, init, high, cmp, init, DefaultConnectionTimeout, Signature, chroniclesFormatItIMPL, contains, hash, exclIfIt, computeFieldSize, computeFieldSize, supportsPacked, stripPeerId, toBytes, DigestSheme, IPFS, getField, shortLog, readOnce, init, resetImpl, isEmpty, shortLog, data, chroniclesFormatItIMPL, hex, protocols, chroniclesFormatItIMPL, computeFieldSize, HTTPS, UNIX, LPError, supportsPacked, readFieldInto, TLS_WS, sign, encode, Rng, getProtocolArgument, supported, MaResult, init, supportsPacked, toBytes, QUIC_V1_IP4, writeSeq, finish, &, DNS6, expandAddrs, writeField, decode, IpTransportProtocol, key, IP4, TranscoderPort, getBytes, readFieldInto, DNSANY, >=, QUIC_V1_DNS, payloadDomain, $, MaPattern, withValue, MuxedStream, init, LPStreamLimitError, TranscoderOnion3, SignedPayload, mac, toBytes, protoArgument, newLPStreamLimitError, keyOpenArray, match, WebSockets_DNS, SignedPeerRecord, $, isEmpty, writeLp, toCid, init, newLPStreamIncompleteError, MAProtocol, newLPStreamResetError, initStream, init, getField, DNS4, readFieldInto, getWrapped, selectBest, supportsPacked, P2PPattern, Envelope, hasPublicKey, toException, init, Stream, isEnough, Reliable, addrs, hex, closeImpl, getBytes, ivOpenArray, WS, init, encode, take, init, init, match, readArray, filterAddrs, <, iv, readLine, Eof, CryptoError, computeFieldSize, append, hash, init, parseFullAddress, WSS_IP, LPStreamConnDownError, peekArray, PeerRecord, SupportedSchemes, generate, QUIC_DNS, Unreliable, SupportedSchemesInt, random, checkFutures, supportsPacked, macOpenArray, init, checkAddresses, validate, protoCode, mapEq, libp2p_pki_schemes, Onion3, TcpOnion3, toFullAddress, pickOne, concat, TranscoderP2P, AddressInfo, ConnectionTrackerName, TranscoderIP6, new, write, EnvelopeError, computeFieldSize, encode, len, newLPStreamRemoteClosedError, TranscoderIP6Zone, MaPatResult, Direction, init, InvalidVarintError, shortLog, items, init, write, write, init, UTP, readVarint, verify, readFieldInto, TimeoutHandler, QUIC_IP, init, PublicKey, WebSockets_IP, VBuffer, writeLp, writePBVarint, toChunks, readExactly, newLPStreamConnDownError, init, initStream, MultiAddress, supportsPacked, readVarint, toOpt, closeWithEOF, RsaDefaultKeySize, orError, LPStreamRemoteClosedError, <, MaInvalidAddress, generate, LPStreamClosedError, writeField, write, getOrder, TranscoderUnix, toOpt, writeVarint, getMostObservedProtosAndPorts, Delta, IdentifyPush, init, addObservation, IdentityInvalidMsgError, IdentifyCodec, new, new, Identify, encode, IdentityNoMatchError, chroniclesExpandItIMPL, ProtoVersion, push, IdentifyInfo, IdentifyError, $, identify, init, ObservedAddrManager, AgentVersion, IdentifyNoPubKeyError, IdentifyPushHandler, guessDialableAddr, IdentifyPushCodec, new, chroniclesExpandItIMPL, decode, new, reserveIncoming, codec=, resetImpl, handler, handler, handler=, LPProtoHandler, handshake, new, secure, init, readMessage, shortLog, reserveOutgoing, init, canAcceptIncoming, codec, closeImpl, releaseOutgoing, readOnce, getWrapped, start, initStream, releaseIncoming, SecureConn, canOpenOutgoing, chroniclesFormatItIMPL, SecureConnTrackerName, LPProtocol, stop, Secure, start, MultiStreamError, handle, addHandler, list, new, HandlerHolder, stop, addHandler, select, select, lookupProtocol, Matcher, MultistreamSelect, select, handle