libp2p/upgrademngrs/upgrade

    Dark Mode
Search:
Group by:
  Source   Edit

Types

libp2p_failed_upgrade = IgnoredCollector
  Source   Edit
Upgrade = ref object of RootObj
  ms*: MultistreamSelect
  identity*: Identify
  connManager*: ConnManager
  secureManagers*: seq[Secure]
  Source   Edit
UpgradeFailedError = object of LPError
  Source   Edit

Procs

proc identify(self: Upgrade; conn: Connection): Future[void] {....gcsafe,
    stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
identify the connection   Source   Edit
proc secure(self: Upgrade; conn: Connection): Future[Connection] {....gcsafe,
    stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit

Methods

method upgradeIncoming(self: Upgrade; conn: Connection): Future[void] {.base,
    ...raises: [], tags: [].}
  Source   Edit
method upgradeOutgoing(self: Upgrade; conn: Connection): Future[Connection] {.
    base, ...raises: [], tags: [].}
  Source   Edit

Exports

newLPStreamWriteError, getProtoHeader, shortLog, random, $, MaError, ephemeral, MaPatternOp, HTTP, initVBuffer, getProtoHeader, MaxSizeError, ProtoHeader, ==, getLen, ECDHEScheme, shortLog, init, closed, [], shuffle, random, init, VBuffer, Secret, peekVarint, random, $, validate, mapOr, key, maxInlineKeyLength, TranscoderDNS, QUIC, init, ephemeral, getRequiredField, getField, supported, getWrapped, getBytes, public, MAKind, write, write, init, getField, checkFieldNumber, init, getRepeatedField, matchPartial, getBytes, len, readLp, init, initVBuffer, atEof, LPStreamTrackerName, peekSeq, payloadType, <=, LPStreamError, init, decode, IP, protoAddress, newRng, DefaultConnectionTimeout, checkValid, getPublicKey, decodeProposal, WebSockets, CircuitRelay, extractPublicKey, mapAnd, new, hash, new, newLPStreamEOFError, init, ==, DNSADDR, hash, init, write, WSS, LPStream, writePacked, init, closeImpl, readSeq, toBytes, shortLog, encode, TranscoderIP4, init, protoName, ==, toRawBytes, TranscoderIP6Zone, $, initProtoBuffer, newLPStreamReadError, init, match, writeLPVarint, CryptoResult, ProtoResult, WebRTCDirect, init, init, UDP, PeerInfo, TranscoderOnion, StreamTracker, write, init, readVarint, isEmpty, writeArray, writeLp, shcopy, LPStreamIncompleteError, PeerId, [], LPStreamEOFError, IP6, shortLog, initVBuffer, decode, ProtoFlags, PKScheme, isUpgraded, payload, stretchKeys, Connection, write, TCP, PrivateKey, getBytes, write, init, &=, PeerInfoError, newLPStreamClosedError, close, init, initProtoBuffer, toException, DNS, init, init, upgrade, goffset, finish, getRawBytes, >, KeyPair, TimeoutHandler, init, high, toString, cmp, init, SupportedWireTypes, formatItIMPL, formatItIMPL, formatItIMPL, Signature, formatItIMPL, toBytes, DigestSheme, IPFS, readOnce, isEmpty, MultiAddress, ProtoScalar, shortLog, LPStreamIncorrectDefect, hex, protocols, init, HTTPS, tryAndWarn, LPError, getPtr, write, sign, encode, update, MaResult, init, ProtoField, toBytes, writeSeq, &, DNS6, IpTransportProtocol, toOpenArray, init, allFuturesThrowing, IP4, TranscoderPort, isEnough, write, getField, DNSANY, createExchange, >=, init, mac, payloadDomain, $, LPStreamLimitError, libp2p_pki_schemes, SignedPayload, init, toBytes, newLPStreamLimitError, write, keyOpenArray, init, match, $, isEmpty, LPStreamReadError, getRequiredRepeatedField, newLPStreamIncompleteError, newLPStreamReadError, initProtoBuffer, MAProtocol, getPackedRepeatedField, initStream, contains, init, shortLog, DNS4, readArray, selectBest, newLPStreamIncorrectDefect, P2PPattern, Envelope, hasPublicKey, toException, isEnough, Reliable, hex, ProtoBuffer, closeImpl, write, decode, WS, readVarint, encode, init, getField, match, getField, <, iv, onUpgrade, readLine, Eof, CryptoError, getField, append, MaPattern, vsizeof, init, peekArray, UNIX, PeerRecord, SupportedSchemes, getRepeatedField, LPStreamWriteError, getField, RsaDefaultKeySize, hash, Unreliable, SupportedSchemesInt, random, checkFutures, macOpenArray, init, validate, $, protoCode, mapEq, getField, write, concat, TranscoderP2P, AddressInfo, ConnectionTrackerName, TranscoderIP6, init, write, EnvelopeError, encode, len, MaxMessageSize, createProposal, MaPatResult, Direction, init, InvalidVarintError, shortLog, ==, write, getBytes, write, init, UTP, finish, verify, PublicKey, writeLp, writePBVarint, ProtoFieldKind, readExactly, protoArgument, getRepeatedField, ProtoError, init, initStream, getField, ivOpenArray, closeWithEOF, orError, decodeExchange, getField, MaInvalidAddress, LPStreamClosedError, writeVarint, items, write, getOrder, TranscoderUnix, SignedPeerRecord, join, identify, expandItIMPL, new, IdentifyNoPubKeyError, init, IdentifyPush, AgentVersion, IdentityInvalidMsgError, IdentifyCodec, IdentifyPushHandler, new, IdentifyPushCodec, Identify, init, IdentityNoMatchError, ProtoVersion, push, decodeMsg, IdentifyInfo, IdentifyError, formatItIMPL, codec, getWrapped, handshake, init, Secure, init, closeImpl, readMessage, shortLog, new, secure, LPProtoHandler, LPProtocol, codec=, SecureConnTrackerName, initStream, stop, readOnce, SecureConn, start, addHandler, MsgSize, handle, MultiStreamError, Ls, Codec, addHandler, start, MultistreamSelect, new, HandlerHolder, list, addHandler, select, select, stop, Matcher, MSCodec, select, Na