libp2p/upgrademngrs/upgrade

    Dark Mode
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: Connection; peerId: Opt[PeerId]): InternalRaisesFuture[
    Connection, (CancelledError, LPError)] {.stackTrace: false, ...raises: [],
    gcsafe, gcsafe, raises: [], gcsafe, raises: [], tags: [RootEffect].}
  Source   Edit

Methods

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

Exports

ConnManager, getStream, PeerEventKind, getStream, addPeerEventHandler, new, ConnEventKind, PeerEventHandler, selectMuxer, getConnections, contains, removePeerEventHandler, expectConnection, ConnEvent, connCount, ConnEventHandler, addConnEventHandler, triggerConnEvent, removeConnEventHandler, contains, triggerPeerEvents, AlreadyExpectingConnectionError, PeerEvent, TooManyConnectionsError, getStream, trackConnection, close, MaxConnectionsPerPeer, connectedPeers, selectMuxer, trackMuxer, getOutgoingSlot, slotsAvailable, dropPeer, getIncomingSlot, storeMuxer, release, MaxConnections, ConnectionSlot, DNS_OR_IP, shortLog, init, decode, random, UDP_DNS, $, <=, MaError, ephemeral, MaPatternOp, ==, WS_DNS, initVBuffer, getProtoHeader, decode, MaxSizeError, ProtoHeader, ProtoFlags, getLen, ECDHEScheme, shortLog, init, closed, [], macOpenArray, random, init, VBuffer, Secret, peekVarint, random, $, validate, init, bytes, maxInlineKeyLength, TranscoderDNS, QUIC, [], init, ephemeral, withValue, getRequiredField, getField, supported, WS_IP, safeConvert, public, MAKind, write, write, init, getField, checkFieldNumber, valueOr, init, getRepeatedField, matchPartial, libp2p_pki_schemes, getBytes, len, init, readLp, HTTP, initVBuffer, atEof, LPStreamTrackerName, peekSeq, toOpt, fullAddrs, payloadType, getProtoHeader, LPStreamError, init, IP, protoAddress, QUIC_V1_IP, newRng, DefaultConnectionTimeout, ==, withValue, checkValid, mac, getPublicKey, exceptionToAssert, WebSockets, CircuitRelay, extractPublicKey, mapAnd, new, maErr, UDP_IP, new, newLPStreamEOFError, init, DNSADDR, AddressMapper, init, write, PeerId, WSS, LPStream, QUIC_V1, TCP_IP, writePacked, init, init, closeImpl, readSeq, toBytes, TCP_DNS, shortLog, encode, capLen, protoName, ==, toRawBytes, mapOr, MaPattern, $, initProtoBuffer, init, ProtoBuffer, WSS_DNS, match, writeLPVarint, CryptoResult, parseFullAddress, ProtoResult, WebRTCDirect, init, UDP, TranscoderOnion, StreamTracker, write, init, LPStreamResetError, isEmpty, writeArray, decode, LPStreamIncompleteError, [], LPStreamEOFError, IP6, shortLog, initVBuffer, PKScheme, finish, toString, payload, init, Connection, write, init, TCP, PrivateKey, getBytes, write, init, &=, PeerInfoError, newLPStreamClosedError, random, write, compilesOr, close, TranscoderIP4, init, initProtoBuffer, toException, DNS, finish, stretchKeys, UTP, goffset, readVarint, >, KeyPair, QUIC_V1_DNS, high, init, cmp, init, SupportedWireTypes, formatItIMPL, formatItIMPL, formatItIMPL, Signature, contains, exclIfIt, hash, formatItIMPL, toBytes, DigestSheme, IPFS, getField, readOnce, isEmpty, ProtoScalar, shortLog, data, hex, protocols, init, HTTPS, len, LPError, getPtr, write, TLS_WS, sign, encode, update, MaResult, init, ProtoField, init, toBytes, writeSeq, init, &, DNS6, IpTransportProtocol, toOpenArray, init, IP4, TranscoderPort, isEnough, getBytes, getField, >=, payloadDomain, $, withValue, getRawBytes, LPStreamLimitError, TranscoderOnion3, SignedPayload, toBytes, protoArgument, newLPStreamLimitError, write, keyOpenArray, init, match, WebSockets_DNS, $, isEmpty, writeLp, getRequiredRepeatedField, newLPStreamIncompleteError, initProtoBuffer, MAProtocol, newLPStreamResetError, getPackedRepeatedField, initStream, init, getField, shortLog, DNS4, MultiAddress, getWrapped, readArray, selectBest, write, P2PPattern, Envelope, hasPublicKey, toException, init, isEnough, DNSANY, Reliable, addrs, hex, closeImpl, WS, encode, TimeoutHandler, getField, match, <, iv, readLine, Eof, CryptoError, getField, verify, append, vsizeof, parseFullAddress, WSS_IP, LPStreamConnDownError, peekArray, UNIX, PeerRecord, init, SupportedSchemes, getRepeatedField, getField, hash, Unreliable, SupportedSchemesInt, random, checkFutures, shuffle, init, validate, $, protoCode, mapEq, Onion3, write, TcpOnion3, hash, concat, TranscoderP2P, PeerInfo, AddressInfo, ConnectionTrackerName, TranscoderIP6, write, EnvelopeError, encode, len, newLPStreamRemoteClosedError, TranscoderIP6Zone, MaPatResult, Direction, init, InvalidVarintError, shortLog, items, ==, init, write, getBytes, write, readVarint, QUIC_DNS, key, QUIC_IP, init, PublicKey, WebSockets_IP, writeLp, writePBVarint, ProtoFieldKind, readExactly, protoArgument, getRepeatedField, ProtoError, newLPStreamConnDownError, init, initStream, getField, ivOpenArray, closeWithEOF, orError, getField, LPStreamRemoteClosedError, MaInvalidAddress, LPStreamClosedError, RsaDefaultKeySize, write, getOrder, TranscoderUnix, SignedPeerRecord, join, writeVarint, getMostObservedProtosAndPorts, new, IdentifyPush, init, addObservation, IdentityInvalidMsgError, IdentifyCodec, new, new, Identify, IdentityNoMatchError, ProtoVersion, push, IdentifyError, IdentifyInfo, decodeMsg, $, expandItIMPL, init, identify, ObservedAddrManager, AgentVersion, IdentifyNoPubKeyError, IdentifyPushHandler, guessDialableAddr, IdentifyPushCodec, formatItIMPL, new, new, codec=, handler, handler=, DefaultMaxIncomingStreams, handler, handler=, LPProtoHandler, handshake, new, secure, init, readMessage, shortLog, init, maxIncomingStreams=, codec, closeImpl, maxIncomingStreams, readOnce, getWrapped, start, initStream, SecureConn, SecureConnTrackerName, LPProtocol, stop, Secure, addHandler, start, MultiStreamError, handle, addHandler, list, new, HandlerHolder, stop, addHandler, select, select, Matcher, MultistreamSelect, select, handle