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: Connection; direction: Direction;
            peerId: Opt[PeerId]): Future[Connection] {.async, ...gcsafe, gcsafe,
    raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  

Methods

method upgrade(self: Upgrade; conn: Connection; direction: Direction;
               peerId: Opt[PeerId]): Future[Muxer] {.base, ...gcsafe, raises: [],
    tags: [], forbids: [].}
Source   Edit  

Exports

PeerEventHandler, PeerEvent, TooManyConnectionsError, MaxConnectionsPerPeer, ConnEventKind, ConnManager, connectedPeers, getConnections, AlreadyExpectingConnectionError, ConnEvent, connCount, ConnEventHandler, new, addConnEventHandler, PeerEventKind, triggerConnEvent, removeConnEventHandler, MaxConnections, ConnectionSlot, newLPStreamWriteError, DNS_OR_IP, ProtoHeader, shortLog, init, random, UDP_DNS, $, getProtoHeader, MaError, ephemeral, MaPatternOp, WS_DNS, initVBuffer, getProtoHeader, MaxSizeError, ProtoFlags, getLen, ECDHEScheme, shortLog, init, init, closed, [], decode, macOpenArray, random, init, VBuffer, Secret, peekVarint, random, $, validate, mapOr, init, bytes, maxInlineKeyLength, TranscoderDNS, QUIC, [], key, ephemeral, withValue, getRequiredField, getField, init, writeLp, WS_IP, write, public, MAKind, write, DNSANY, getField, checkFieldNumber, valueOr, init, getRepeatedField, matchPartial, libp2p_pki_schemes, getBytes, len, ==, readVarint, readLp, HTTP, initVBuffer, mac, atEof, TcpOnion3, write, toOpt, fullAddrs, payloadType, <=, LPStreamError, init, IP, protoAddress, newRng, DefaultConnectionTimeout, ==, checkValid, getPublicKey, exceptionToAssert, decodeProposal, len, CircuitRelay, extractPublicKey, mapAnd, new, verify, UDP_IP, new, newLPStreamEOFError, init, ==, DNSADDR, AddressMapper, write, PeerId, WSS, LPStream, TCP_IP, hash, writePacked, init, readSeq, toBytes, TCP_DNS, shortLog, encode, len, capLen, init, protoName, toRawBytes, TranscoderIP6Zone, $, initProtoBuffer, newLPStreamReadError, init, WSS_DNS, match, writeLPVarint, CryptoResult, parseFullAddress, ProtoResult, WebRTCDirect, init, UDP, TranscoderOnion, StreamTracker, write, init, LPStreamResetError, isEmpty, writeArray, LPStreamReadError, decode, LPStreamIncompleteError, [], LPStreamEOFError, IP6, shortLog, initVBuffer, PKScheme, payload, init, init, Connection, write, init, TCP, PrivateKey, getBytes, newLPStreamIncorrectDefect, init, &=, PeerInfoError, newLPStreamClosedError, random, write, compilesOr, TranscoderIP4, init, initProtoBuffer, toException, DNS, UTP, goffset, readVarint, getRawBytes, >, KeyPair, init, init, high, toString, cmp, init, SupportedWireTypes, formatItIMPL, formatItIMPL, formatItIMPL, Signature, contains, hash, formatItIMPL, toBytes, DigestSheme, IPFS, getField, readOnce, init, isEmpty, ProtoScalar, shortLog, data, LPStreamIncorrectDefect, hex, protocols, finish, update, HTTPS, tryAndWarn, WebSockets, LPError, getPtr, write, TLS_WS, sign, finish, encode, MaResult, init, ProtoField, init, toBytes, writeSeq, init, &, DNS6, IpTransportProtocol, toOpenArray, allFuturesThrowing, IP4, TranscoderPort, isEnough, safeConvert, getField, init, createExchange, >=, init, payloadDomain, $, MaPattern, withValue, init, LPStreamLimitError, TranscoderOnion3, SignedPayload, closeImpl, toBytes, protoArgument, newLPStreamLimitError, write, keyOpenArray, match, createProposal, parseFullAddress, $, isEmpty, supported, getRequiredRepeatedField, init, newLPStreamIncompleteError, newLPStreamReadError, initProtoBuffer, MAProtocol, newLPStreamResetError, getPackedRepeatedField, initStream, getField, shortLog, DNS4, getWrapped, readArray, selectBest, write, P2PPattern, Envelope, hasPublicKey, toException, init, isEnough, init, Reliable, addrs, hex, ProtoBuffer, getBytes, WS, stretchKeys, encode, init, init, getField, getField, match, getField, <, iv, readLine, Eof, CryptoError, hash, append, vsizeof, init, WebSockets_DNS, WSS_IP, LPStreamConnDownError, peekArray, UNIX, PeerRecord, SupportedSchemes, getRepeatedField, LPStreamWriteError, Unreliable, SupportedSchemesInt, random, checkFutures, shuffle, validate, $, protoCode, mapEq, Onion3, write, LPStreamTrackerName, concat, TranscoderP2P, PeerInfo, AddressInfo, ConnectionTrackerName, TranscoderIP6, write, EnvelopeError, encode, newLPStreamRemoteClosedError, MaPatResult, Direction, InvalidVarintError, decode, shortLog, items, ==, init, peekSeq, getBytes, write, PublicKey, WebSockets_IP, writeLp, writePBVarint, ProtoFieldKind, readExactly, protoArgument, getRepeatedField, ProtoError, newLPStreamConnDownError, initStream, getField, MultiAddress, ivOpenArray, TimeoutHandler, orError, decodeExchange, getField, LPStreamRemoteClosedError, setupStreamTracker, 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, codec=, DefaultMaxIncomingStreams, LPProtoHandler, handshake, new, secure, init, readMessage, shortLog, init, maxIncomingStreams=, codec, closeImpl, maxIncomingStreams, getWrapped, start, initStream, SecureConn, SecureConnTrackerName, LPProtocol, stop, Secure, HandlerHolder, MultiStreamError, select, select, Matcher, new, select, MultistreamSelect