mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-03-04 01:50:36 +00:00
update docs for message-id-mem
This commit is contained in:
parent
8f402d812f
commit
493993e918
@ -1,4 +1,4 @@
|
||||
/* Generated by the Nim Compiler v1.6.18 */
|
||||
/* Generated by the Nim Compiler v1.6.20 */
|
||||
var framePtr = null;
|
||||
var excHandler = 0;
|
||||
var lastJSError = null;
|
||||
|
@ -260,7 +260,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:41 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@ -874,7 +874,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -391,7 +391,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1621,7 +1621,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -398,7 +398,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1450,7 +1450,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:35 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:08 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3040,7 +3040,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:35 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:08 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -940,7 +940,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:35 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:08 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -275,7 +275,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1195,7 +1195,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:34 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:07 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1029,7 +1029,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:34 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:07 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -908,7 +908,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:35 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:08 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -381,7 +381,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -450,7 +450,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -340,7 +340,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2551,7 +2551,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -396,7 +396,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:36 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:09 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -481,7 +481,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:36 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:09 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -689,7 +689,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:36 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:09 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -226,11 +226,7 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
<ul class="simple nested-toc-section">addHandler
|
||||
<li><a class="reference" href="#addHandler%2CMultistreamSelect%2Cstring%2CLPProtoHandler%2CMatcher"
|
||||
title="addHandler(m: MultistreamSelect; codec: string; handler: LPProtoHandler;
|
||||
matcher: Matcher = nil)">addHandler(m: MultistreamSelect; codec: string; handler: LPProtoHandler;
|
||||
matcher: Matcher = nil)</a></li>
|
||||
<li><a class="reference" href="#addHandler%2CMultistreamSelect%2Cstring%2CLPProtocol%2CMatcher"
|
||||
<li><a class="reference" href="#addHandler%2CMultistreamSelect%2Cstring%2CLPProtocol%2CMatcher"
|
||||
title="addHandler(m: MultistreamSelect; codec: string; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)">addHandler(m: MultistreamSelect; codec: string; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)</a></li>
|
||||
@ -238,6 +234,12 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
title="addHandler(m: MultistreamSelect; codecs: seq[string]; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)">addHandler(m: MultistreamSelect; codecs: seq[string]; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)</a></li>
|
||||
<li><a class="reference" href="#addHandler%2CMultistreamSelect%2Cstring%2C%2CMatcher"
|
||||
title="addHandler[E](m: MultistreamSelect; codec: string; handler: LPProtoHandler |
|
||||
proc (conn: Connection; proto: string): InternalRaisesFuture[void, E];
|
||||
matcher: Matcher = nil)">addHandler[E](m: MultistreamSelect; codec: string; handler: LPProtoHandler |
|
||||
proc (conn: Connection; proto: string): InternalRaisesFuture[void, E];
|
||||
matcher: Matcher = nil)</a></li>
|
||||
|
||||
</ul>
|
||||
<ul class="simple nested-toc-section">handle
|
||||
@ -379,19 +381,6 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="section" id="12">
|
||||
<h1><a class="toc-backref" href="#12">Procs</a></h1>
|
||||
<dl class="item">
|
||||
<div id="addHandler,MultistreamSelect,string,LPProtoHandler,Matcher" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#addHandler%2CMultistreamSelect%2Cstring%2CLPProtoHandler%2CMatcher"><span class="Identifier">addHandler</span></a><span class="Other">(</span><span class="Identifier">m</span><span class="Other">:</span> <a href="multistream.html#MultistreamSelect"><span class="Identifier">MultistreamSelect</span></a><span class="Other">;</span> <span class="Identifier">codec</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <a href="protocols/protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a><span class="Other">;</span>
|
||||
<span class="Identifier">matcher</span><span class="Other">:</span> <a href="multistream.html#Matcher"><span class="Identifier">Matcher</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
helper to allow registering pure handlers
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multistream.nim#L249"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L249" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="addHandler,MultistreamSelect,string,LPProtocol,Matcher" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#addHandler%2CMultistreamSelect%2Cstring%2CLPProtocol%2CMatcher"><span class="Identifier">addHandler</span></a><span class="Other">(</span><span class="Identifier">m</span><span class="Other">:</span> <a href="multistream.html#MultistreamSelect"><span class="Identifier">MultistreamSelect</span></a><span class="Other">;</span> <span class="Identifier">codec</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">protocol</span><span class="Other">:</span> <a href="protocols/protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a><span class="Other">;</span>
|
||||
<span class="Identifier">matcher</span><span class="Other">:</span> <a href="multistream.html#Matcher"><span class="Identifier">Matcher</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
@ -416,6 +405,20 @@ href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multist
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L234" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="addHandler,MultistreamSelect,string,,Matcher" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#addHandler%2CMultistreamSelect%2Cstring%2C%2CMatcher"><span class="Identifier">addHandler</span></a><span class="Other">[</span><span class="Identifier">E</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">m</span><span class="Other">:</span> <a href="multistream.html#MultistreamSelect"><span class="Identifier">MultistreamSelect</span></a><span class="Other">;</span> <span class="Identifier">codec</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <a href="protocols/protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a> <span class="Operator">|</span>
|
||||
<span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">conn</span><span class="Other">:</span> <a href="stream/connection.html#Connection"><span class="Identifier">Connection</span></a><span class="Other">;</span> <span class="Identifier">proto</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">InternalRaisesFuture</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">,</span> <span class="Identifier">E</span><span class="Other">]</span><span class="Other">;</span>
|
||||
<span class="Identifier">matcher</span><span class="Other">:</span> <a href="multistream.html#Matcher"><span class="Identifier">Matcher</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
helper to allow registering pure handlers
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multistream.nim#L249"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L249" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="handle,typeMultistreamSelect,Connection,seq[string],bool" class="tohide">
|
||||
@ -526,9 +529,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multistream.nim#L263"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multistream.nim#L267"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L263" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L267" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -540,9 +543,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multistream.nim#L286"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/multistream.nim#L290"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L286" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/multistream.nim#L290" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -556,7 +559,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -399,7 +399,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -455,7 +455,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -535,7 +535,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -606,7 +606,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -375,7 +375,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -360,7 +360,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -806,7 +806,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -484,7 +484,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -931,7 +931,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:33 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:06 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -508,7 +508,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -302,7 +302,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -468,7 +468,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -722,7 +722,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -383,7 +383,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -568,7 +568,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -414,7 +414,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -376,7 +376,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -535,7 +535,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</dd>
|
||||
</div>
|
||||
<div id="init,IdentifyPush" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CIdentifyPush"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="identify.html#IdentifyPush"><span class="Identifier">IdentifyPush</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CIdentifyPush"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="identify.html#IdentifyPush"><span class="Identifier">IdentifyPush</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -593,7 +593,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<h1><a class="toc-backref" href="#14">Methods</a></h1>
|
||||
<dl class="item">
|
||||
<div id="init.e,Identify" class="tohide">
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CIdentify"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="identify.html#Identify"><span class="Identifier">Identify</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CIdentify"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="identify.html#Identify"><span class="Identifier">Identify</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -636,7 +636,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -388,7 +388,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<h1><a class="toc-backref" href="#14">Methods</a></h1>
|
||||
<dl class="item">
|
||||
<div id="init.e,Ping" class="tohide">
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CPing"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="ping.html#Ping"><span class="Identifier">Ping</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CPing"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="ping.html#Ping"><span class="Identifier">Ping</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -414,7 +414,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -208,12 +208,11 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
<li><a class="reference" href="#LPProtocol"
|
||||
title="LPProtocol = ref object of RootObj
|
||||
codecs*: seq[string]
|
||||
handler*: LPProtoHandler ## this handler gets invoked by the protocol negotiator
|
||||
handlerImpl: LPProtoHandler ## invoked by the protocol negotiator
|
||||
started*: bool
|
||||
maxIncomingStreams: Opt[int]">LPProtocol</a></li>
|
||||
<li><a class="reference" href="#LPProtoHandler"
|
||||
title="LPProtoHandler = proc (conn: Connection; proto: string): Future[void] {.gcsafe,
|
||||
raises: [].}">LPProtoHandler</a></li>
|
||||
title="LPProtoHandler = proc (conn: Connection; proto: string): Future[void] {.async.}">LPProtoHandler</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@ -237,6 +236,15 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
<li><a class="reference" href="#codec%3D%2CLPProtocol%2Cstring"
|
||||
title="codec=(p: LPProtocol; codec: string)">codec=(p: LPProtocol; codec: string)</a></li>
|
||||
|
||||
</ul>
|
||||
<ul class="simple nested-toc-section">handler=
|
||||
<li><a class="reference" href="#handler%3D%2CLPProtocol%2CLPProtoHandler"
|
||||
title="handler=(p: LPProtocol; handler: LPProtoHandler)">handler=(p: LPProtocol; handler: LPProtoHandler)</a></li>
|
||||
<li><a class="reference" href="#handler%3D%2CLPProtocol%2Cproc%28Connection%2Cstring%29"
|
||||
title="handler=[E](p: LPProtocol; handler: proc (conn: Connection; proto: string): InternalRaisesFuture[
|
||||
void, E])">handler=[E](p: LPProtocol; handler: proc (conn: Connection; proto: string): InternalRaisesFuture[
|
||||
void, E])</a></li>
|
||||
|
||||
</ul>
|
||||
<ul class="simple nested-toc-section">maxIncomingStreams
|
||||
<li><a class="reference" href="#maxIncomingStreams%2CLPProtocol"
|
||||
@ -253,6 +261,12 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
title="new(T: type LPProtocol; codecs: seq[string]; handler: LPProtoHandler;
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type">new(T: type LPProtocol; codecs: seq[string]; handler: LPProtoHandler;
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type</a></li>
|
||||
<li><a class="reference" href="#new%2CtypeLPProtocol%2Cseq%5Bstring%5D%2Cproc%28Connection%2Cstring%29"
|
||||
title="new[E](T: type LPProtocol; codecs: seq[string]; handler: proc (conn: Connection;
|
||||
proto: string): InternalRaisesFuture[void, E];
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type">new[E](T: type LPProtocol; codecs: seq[string]; handler: proc (conn: Connection;
|
||||
proto: string): InternalRaisesFuture[void, E];
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
@ -279,6 +293,19 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#18" id="68">Templates</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
<ul class="simple nested-toc-section">handler
|
||||
<li><a class="reference" href="#handler.t%2CLPProtocol"
|
||||
title="handler(p: LPProtocol): LPProtoHandler">handler(p: LPProtocol): LPProtoHandler</a></li>
|
||||
<li><a class="reference" href="#handler.t%2CLPProtocol%2CConnection%2Cstring"
|
||||
title="handler(p: LPProtocol; conn: Connection; proto: string): Future[void]">handler(p: LPProtocol; conn: Connection; proto: string): Future[void]</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
@ -303,7 +330,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div id="LPProtocol" class="tohide">
|
||||
<dt><pre><a href="protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <span class="Identifier">RootObj</span>
|
||||
<span class="Identifier">codecs</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span>
|
||||
<span class="Identifier">handler</span><span class="Operator">*</span><span class="Other">:</span> <a href="protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a> <span class="Comment">## this handler gets invoked by the protocol negotiator</span>
|
||||
<span class="Identifier">handlerImpl</span><span class="Other">:</span> <a href="protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a> <span class="Comment">## invoked by the protocol negotiator</span>
|
||||
<span class="Identifier">started</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
|
||||
<span class="Identifier">maxIncomingStreams</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</span>
|
||||
</pre></dt>
|
||||
@ -311,15 +338,14 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L27"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L25"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L27" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L25" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="LPProtoHandler" class="tohide">
|
||||
<dt><pre><a href="protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">conn</span><span class="Other">:</span> <a href="../stream/connection.html#Connection"><span class="Identifier">Connection</span></a><span class="Other">;</span> <span class="Identifier">proto</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">gcsafe</span><span class="Other">,</span>
|
||||
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><a href="protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">conn</span><span class="Other">:</span> <span class="Identifier">Connection</span><span class="Other">;</span> <span class="Identifier">proto</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span> {.<span class="Identifier">async</span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -358,9 +384,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L54"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L52"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L54" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L52" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -370,9 +396,34 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L58"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L56"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L56" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="handler=,LPProtocol,LPProtoHandler" class="tohide">
|
||||
<dt><pre><span class="Keyword">func</span> <a href="#handler%3D%2CLPProtocol%2CLPProtoHandler"><span class="Identifier">handler=</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <a href="protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L68"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L68" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="handler=,LPProtocol,proc(Connection,string)" class="tohide">
|
||||
<dt><pre><span class="Keyword">func</span> <a href="#handler%3D%2CLPProtocol%2Cproc%28Connection%2Cstring%29"><span class="Identifier">handler=</span></a><span class="Other">[</span><span class="Identifier">E</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">conn</span><span class="Other">:</span> <a href="../stream/connection.html#Connection"><span class="Identifier">Connection</span></a><span class="Other">;</span> <span class="Identifier">proto</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">InternalRaisesFuture</span><span class="Other">[</span>
|
||||
<span class="Identifier">void</span><span class="Other">,</span> <span class="Identifier">E</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L77"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L77" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -382,9 +433,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L48"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L46"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L48" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L46" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -394,9 +445,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L51"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L49"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L51" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L49" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -408,9 +459,24 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L63"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L86"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L63" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L86" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="new,typeLPProtocol,seq[string],proc(Connection,string)" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#new%2CtypeLPProtocol%2Cseq%5Bstring%5D%2Cproc%28Connection%2Cstring%29"><span class="Identifier">new</span></a><span class="Other">[</span><span class="Identifier">E</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Keyword">type</span> <span class="Identifier">LPProtocol</span><span class="Other">;</span> <span class="Identifier">codecs</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <span class="Keyword">proc</span> <span class="Other">(</span>
|
||||
<span class="Identifier">conn</span><span class="Other">:</span> <a href="../stream/connection.html#Connection"><span class="Identifier">Connection</span></a><span class="Other">;</span> <span class="Identifier">proto</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">InternalRaisesFuture</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">,</span> <span class="Identifier">E</span><span class="Other">]</span><span class="Other">;</span>
|
||||
<span class="Identifier">maxIncomingStreams</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</span> <span class="Operator">|</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="Identifier">Opt</span><span class="Other">.</span><span class="Identifier">none</span><span class="Other">(</span><span class="Identifier">int</span><span class="Other">)</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T:type</span> {.
|
||||
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L99"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L99" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -425,9 +491,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L33"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L31"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L33" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L31" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -439,9 +505,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L36"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L34"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L36" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L34" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -452,9 +518,38 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L42"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L40"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L42" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L40" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
</dl></div>
|
||||
<div class="section" id="18">
|
||||
<h1><a class="toc-backref" href="#18">Templates</a></h1>
|
||||
<dl class="item">
|
||||
<div id="handler.t,LPProtocol" class="tohide">
|
||||
<dt><pre><span class="Keyword">template</span> <a href="#handler.t%2CLPProtocol"><span class="Identifier">handler</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a><span class="Other">)</span><span class="Other">:</span> <a href="protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L61"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L61" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="handler.t,LPProtocol,Connection,string" class="tohide">
|
||||
<dt><pre><span class="Keyword">template</span> <a href="#handler.t%2CLPProtocol%2CConnection%2Cstring"><span class="Identifier">handler</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a><span class="Other">;</span> <span class="Identifier">conn</span><span class="Other">:</span> <a href="../stream/connection.html#Connection"><span class="Identifier">Connection</span></a><span class="Other">;</span> <span class="Identifier">proto</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/protocol.nim#L64"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/protocol.nim#L64" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -468,7 +563,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@ -255,7 +255,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -410,7 +410,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<h1><a class="toc-backref" href="#14">Methods</a></h1>
|
||||
<dl class="item">
|
||||
<div id="init.e,FloodSub" class="tohide">
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CFloodSub"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">f</span><span class="Other">:</span> <a href="floodsub.html#FloodSub"><span class="Identifier">FloodSub</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CFloodSub"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">f</span><span class="Other">:</span> <a href="floodsub.html#FloodSub"><span class="Identifier">FloodSub</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -423,7 +423,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</div>
|
||||
<div id="initPubSub.e,FloodSub" class="tohide">
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#initPubSub.e%2CFloodSub"><span class="Identifier">initPubSub</span></a><span class="Other">(</span><span class="Identifier">f</span><span class="Other">:</span> <a href="floodsub.html#FloodSub"><span class="Identifier">FloodSub</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><a href="pubsub.html#InitializationError"><span class="Identifier">InitializationError</span></a><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
|
||||
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -485,7 +485,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@ -436,7 +436,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</div>
|
||||
<div id="peerExchangeList,GossipSub,string" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#peerExchangeList%2CGossipSub%2Cstring"><span class="Identifier">peerExchangeList</span></a><span class="Other">(</span><span class="Identifier">g</span><span class="Other">:</span> <a href="types.html#GossipSub"><span class="Identifier">GossipSub</span></a><span class="Other">;</span> <span class="Identifier">topic</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="../rpc/messages.html#PeerInfoMsg"><span class="Identifier">PeerInfoMsg</span></a><span class="Other">]</span> {.
|
||||
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -496,7 +496,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -446,7 +446,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -265,7 +265,8 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
enablePX*: bool
|
||||
bandwidthEstimatebps*: int
|
||||
overheadRateLimit*: Opt[tuple[bytes: int, interval: Duration]]
|
||||
disconnectPeerAboveRateLimit*: bool">GossipSubParams</a></li>
|
||||
disconnectPeerAboveRateLimit*: bool
|
||||
maxNumElementsInNonPriorityQueue*: int">GossipSubParams</a></li>
|
||||
<li><a class="reference" href="#MeshMetrics"
|
||||
title="MeshMetrics = object
|
||||
otherPeersPerTopicMesh*: int64
|
||||
@ -383,9 +384,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L150"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L158"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L150" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L158" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -416,9 +417,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L160"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L168"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L160" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L168" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -459,6 +460,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<span class="Identifier">bandwidthEstimatebps</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
||||
<span class="Identifier">overheadRateLimit</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">bytes</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">,</span> <span class="Identifier">interval</span><span class="Other">:</span> <span class="Identifier">Duration</span><span class="Other">]</span><span class="Other">]</span>
|
||||
<span class="Identifier">disconnectPeerAboveRateLimit</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
|
||||
<span class="Identifier">maxNumElementsInNonPriorityQueue</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
||||
</pre></dt>
|
||||
<dd>
|
||||
|
||||
@ -484,9 +486,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L184"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L192"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L184" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L192" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -516,9 +518,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L154"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L162"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L154" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L162" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -528,9 +530,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L153"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L161"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L153" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L161" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -591,9 +593,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L151"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/gossipsub/types.nim#L159"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L151" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/gossipsub/types.nim#L159" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -780,7 +782,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -403,7 +403,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -370,7 +370,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -810,9 +810,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L616"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L619"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L616" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L619" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -844,9 +844,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L324"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L327"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L324" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L327" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -865,9 +865,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L561"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L564"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L561" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L564" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -878,9 +878,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L618"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L621"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L618" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L621" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -931,9 +931,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</dl>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L462"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L465"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L462" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L465" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -944,9 +944,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
unsubscribe from a <tt class="docutils literal"><span class="pre">topic</span></tt> string
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L431"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L434"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L431" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L434" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -957,9 +957,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
unsubscribe from a list of <tt class="docutils literal"><span class="pre">topic</span></tt> handlers
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L446"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L449"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L446" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L449" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -970,9 +970,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
unsubscribe every <tt class="docutils literal"><span class="pre"><span class="Identifier">handler</span></span></tt> from <tt class="docutils literal"><span class="pre"><span class="Identifier">topic</span></span></tt>
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L451"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L454"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L451" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L454" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1000,9 +1000,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
Add a validator to a <tt class="docutils literal"><span class="pre"><span class="Identifier">topic</span></span></tt>. Each new message received in this will be sent to <tt class="docutils literal"><span class="pre"><span class="Identifier">hook</span></span></tt>. <tt class="docutils literal"><span class="pre"><span class="Identifier">hook</span></span></tt> can return either <tt class="docutils literal"><span class="pre"><span class="Identifier">Accept</span></span></tt>, <tt class="docutils literal"><span class="pre"><span class="Identifier">Ignore</span></span></tt> or <tt class="docutils literal"><span class="pre"><span class="Identifier">Reject</span></span></tt> (which can descore the peer)
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L511"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L514"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L511" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L514" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1013,9 +1013,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L296"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L299"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L296" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L299" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1033,9 +1033,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</ol>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L361"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L364"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L361" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L364" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1046,9 +1046,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
perform pubsub initialization
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L504"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L507"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L504" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L507" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1072,9 +1072,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L414"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L417"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L414" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L417" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1088,9 +1088,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<p>The return value is the number of neighbours that we attempted to send the message to, excluding self. Note that this is an optimistic number of attempts - the number of peers that actually receive the message might be lower.</p>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L492"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L495"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L492" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L495" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1101,9 +1101,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L521"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L524"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L521" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L524" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1128,9 +1128,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
subscribe to remote peer to receive/send pubsub messages
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L390"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L393"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L390" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L393" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1155,9 +1155,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L530"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsub.nim#L533"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L530" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsub.nim#L533" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -1166,7 +1166,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="section" id="19">
|
||||
<h1><a class="toc-backref" href="#19">Exports</a></h1>
|
||||
<dl class="item">
|
||||
<a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a>, <a href="pubsubpeer.html#PubSubObserver"><span class="Identifier">PubSubObserver</span></a>, <a href="../protocol.html#init.e,LPProtocol"><span class="Identifier">init</span></a>, <a href="../protocol.html#maxIncomingStreams=,LPProtocol,int"><span class="Identifier">maxIncomingStreams=</span></a>, <a href="../protocol.html#codec=,LPProtocol,string"><span class="Identifier">codec=</span></a>, <a href="../protocol.html#DefaultMaxIncomingStreams"><span class="Identifier">DefaultMaxIncomingStreams</span></a>, <a href="../protocol.html#codec,LPProtocol"><span class="Identifier">codec</span></a>, <a href="../protocol.html#maxIncomingStreams,LPProtocol"><span class="Identifier">maxIncomingStreams</span></a>, <a href="../protocol.html#start.e,LPProtocol"><span class="Identifier">start</span></a>, <a href="../protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a>, <a href="../protocol.html#new,typeLPProtocol,seq[string],LPProtoHandler"><span class="Identifier">new</span></a>, <a href="../protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a>, <a href="../protocol.html#stop.e,LPProtocol"><span class="Identifier">stop</span></a>, <a href="errors.html#ValidationResult"><span class="Identifier">ValidationResult</span></a>
|
||||
<a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a>, <a href="pubsubpeer.html#PubSubObserver"><span class="Identifier">PubSubObserver</span></a>, <a href="../protocol.html#new,typeLPProtocol,seq[string],proc(Connection,string)"><span class="Identifier">new</span></a>, <a href="../protocol.html#init.e,LPProtocol"><span class="Identifier">init</span></a>, <a href="../protocol.html#maxIncomingStreams=,LPProtocol,int"><span class="Identifier">maxIncomingStreams=</span></a>, <a href="../protocol.html#codec=,LPProtocol,string"><span class="Identifier">codec=</span></a>, <a href="../protocol.html#DefaultMaxIncomingStreams"><span class="Identifier">DefaultMaxIncomingStreams</span></a>, <a href="../protocol.html#handler.t,LPProtocol,Connection,string"><span class="Identifier">handler</span></a>, <a href="../protocol.html#codec,LPProtocol"><span class="Identifier">codec</span></a>, <a href="../protocol.html#maxIncomingStreams,LPProtocol"><span class="Identifier">maxIncomingStreams</span></a>, <a href="../protocol.html#handler=,LPProtocol,proc(Connection,string)"><span class="Identifier">handler=</span></a>, <a href="../protocol.html#handler.t,LPProtocol"><span class="Identifier">handler</span></a>, <a href="../protocol.html#handler=,LPProtocol,LPProtoHandler"><span class="Identifier">handler=</span></a>, <a href="../protocol.html#start.e,LPProtocol"><span class="Identifier">start</span></a>, <a href="../protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a>, <a href="../protocol.html#new,typeLPProtocol,seq[string],LPProtoHandler"><span class="Identifier">new</span></a>, <a href="../protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a>, <a href="../protocol.html#stop.e,LPProtocol"><span class="Identifier">stop</span></a>, <a href="errors.html#ValidationResult"><span class="Identifier">ValidationResult</span></a>
|
||||
</dl></div>
|
||||
|
||||
</div>
|
||||
@ -1176,7 +1176,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -237,13 +237,15 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
appScore*: float64
|
||||
behaviourPenalty*: float64
|
||||
overheadRateLimitOpt*: Opt[TokenBucket]
|
||||
rpcmessagequeue: RpcMessageQueue">PubSubPeer</a></li>
|
||||
rpcmessagequeue: RpcMessageQueue
|
||||
maxNumElementsInNonPriorityQueue*: int
|
||||
disconnected: bool">PubSubPeer</a></li>
|
||||
<li><a class="reference" href="#PubSubPeerEvent"
|
||||
title="PubSubPeerEvent = object
|
||||
kind*: PubSubPeerEventKind">PubSubPeerEvent</a></li>
|
||||
<li><a class="reference" href="#PubSubPeerEventKind"
|
||||
title="PubSubPeerEventKind {.pure.} = enum
|
||||
Connected, Disconnected">PubSubPeerEventKind</a></li>
|
||||
StreamOpened, StreamClosed, DisconnectionRequested">PubSubPeerEventKind</a></li>
|
||||
<li><a class="reference" href="#RPCHandler"
|
||||
title="RPCHandler = proc (peer: PubSubPeer; data: seq[byte]): Future[void] {.gcsafe,
|
||||
raises: [].}">RPCHandler</a></li>
|
||||
@ -255,6 +257,14 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
<li><a class="reference" href="#DefaultMaxNumElementsInNonPriorityQueue"
|
||||
title="DefaultMaxNumElementsInNonPriorityQueue = 1024">DefaultMaxNumElementsInNonPriorityQueue</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
@ -304,11 +314,11 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
|
||||
</ul>
|
||||
<ul class="simple nested-toc-section">new
|
||||
<li><a class="reference" href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2COpt%5BTokenBucket%5D"
|
||||
<li><a class="reference" href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2Cint%2COpt%5BTokenBucket%5D"
|
||||
title="new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type">new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type</a></li>
|
||||
|
||||
</ul>
|
||||
@ -389,9 +399,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L53"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L59"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L53" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L59" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -401,9 +411,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L52"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L58"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L52" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -413,9 +423,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L54"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L60"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L54" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L60" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -425,9 +435,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L39"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L44"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L39" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L44" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -440,9 +450,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L41"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L46"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L41" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L46" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -467,14 +477,16 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<span class="Identifier">behaviourPenalty</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float64</span>
|
||||
<span class="Identifier">overheadRateLimitOpt</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">TokenBucket</span><span class="Other">]</span>
|
||||
<span class="Identifier">rpcmessagequeue</span><span class="Other">:</span> <a href="pubsubpeer.html#RpcMessageQueue"><span class="Identifier">RpcMessageQueue</span></a>
|
||||
<span class="Identifier">maxNumElementsInNonPriorityQueue</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
||||
<span class="Identifier">disconnected</span><span class="Other">:</span> <span class="Identifier">bool</span>
|
||||
</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L64"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L70"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L64" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L70" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -486,22 +498,22 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L49"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L55"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L49" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L55" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="PubSubPeerEventKind" class="tohide">
|
||||
<dt><pre><a href="pubsubpeer.html#PubSubPeerEventKind"><span class="Identifier">PubSubPeerEventKind</span></a> {.<span class="Identifier">pure</span>.} <span class="Other">=</span> <span class="Keyword">enum</span>
|
||||
<span class="Identifier">Connected</span><span class="Other">,</span> <span class="Identifier">Disconnected</span></pre></dt>
|
||||
<span class="Identifier">StreamOpened</span><span class="Other">,</span> <span class="Identifier">StreamClosed</span><span class="Other">,</span> <span class="Identifier">DisconnectionRequested</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L45"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L50"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L45" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L50" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -512,9 +524,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L87"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L95"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L87" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L95" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -528,9 +540,26 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L56"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L62"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L56" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L62" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
</dl></div>
|
||||
<div class="section" id="10">
|
||||
<h1><a class="toc-backref" href="#10">Consts</a></h1>
|
||||
<dl class="item">
|
||||
<div id="DefaultMaxNumElementsInNonPriorityQueue" class="tohide">
|
||||
<dt><pre><a href="pubsubpeer.html#DefaultMaxNumElementsInNonPriorityQueue"><span class="Identifier">DefaultMaxNumElementsInNonPriorityQueue</span></a> <span class="Other">=</span> <span class="DecNumber">1024</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L41"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L41" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -545,9 +574,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L112"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L120"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L112" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L120" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -557,9 +586,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L415"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L437"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L415" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L437" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -569,9 +598,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L238"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L252"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L238" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L252" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -581,9 +610,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L120"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L128"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L120" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L128" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -593,9 +622,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L99"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L107"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L99" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L107" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -606,9 +635,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L151"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L159"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L151" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L159" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -618,9 +647,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L109"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L117"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L109" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L117" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -630,9 +659,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L124"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L132"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L124" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L132" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -642,24 +671,25 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L244"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L258"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L244" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L258" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="new,typedesc[PubSubPeer],PeerId,GetConn,OnEvent,string,int,Opt[TokenBucket]" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2COpt%5BTokenBucket%5D"><span class="Identifier">new</span></a><span class="Other">(</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">peerId</span><span class="Other">:</span> <a href="../../peerid.html#PeerId"><span class="Identifier">PeerId</span></a><span class="Other">;</span> <span class="Identifier">getConn</span><span class="Other">:</span> <a href="pubsubpeer.html#GetConn"><span class="Identifier">GetConn</span></a><span class="Other">;</span>
|
||||
<div id="new,typedesc[PubSubPeer],PeerId,GetConn,OnEvent,string,int,int,Opt[TokenBucket]" class="tohide">
|
||||
<dt><pre><span class="Keyword">proc</span> <a href="#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2Cint%2COpt%5BTokenBucket%5D"><span class="Identifier">new</span></a><span class="Other">(</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="pubsubpeer.html#PubSubPeer"><span class="Identifier">PubSubPeer</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">peerId</span><span class="Other">:</span> <a href="../../peerid.html#PeerId"><span class="Identifier">PeerId</span></a><span class="Other">;</span> <span class="Identifier">getConn</span><span class="Other">:</span> <a href="pubsubpeer.html#GetConn"><span class="Identifier">GetConn</span></a><span class="Other">;</span>
|
||||
<span class="Identifier">onEvent</span><span class="Other">:</span> <a href="pubsubpeer.html#OnEvent"><span class="Identifier">OnEvent</span></a><span class="Other">;</span> <span class="Identifier">codec</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">maxMessageSize</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span>
|
||||
<span class="Identifier">maxNumElementsInNonPriorityQueue</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="Identifier">DefaultMaxNumElementsInNonPriorityQueue</span><span class="Other">;</span>
|
||||
<span class="Identifier">overheadRateLimitOpt</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">TokenBucket</span><span class="Other">]</span> <span class="Other">=</span> <span class="Identifier">Opt</span><span class="Other">.</span><span class="Identifier">none</span><span class="Other">(</span><span class="Identifier">TokenBucket</span><span class="Other">)</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T:type</span> {.
|
||||
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L463"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L485"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L463" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L485" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -669,9 +699,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L127"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L135"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L127" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L135" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -682,9 +712,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L137"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L145"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L137" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L145" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -703,9 +733,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<p>High priority messages are sent immediately, while low priority messages are queued and sent only after all high priority messages have been sent.</p>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L380"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L402"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L380" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L402" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -723,9 +753,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<p>High priority messages are sent immediately, while low priority messages are queued and sent only after all high priority messages have been sent.</p>
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L314"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L328"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L314" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L328" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -735,9 +765,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L115"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L123"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L115" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L123" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -748,9 +778,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L445"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L467"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L445" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L467" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -765,9 +795,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L118"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/protocols/pubsub/pubsubpeer.nim#L126"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L118" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/protocols/pubsub/pubsubpeer.nim#L126" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -786,7 +816,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -342,7 +342,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -662,7 +662,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -596,7 +596,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -456,7 +456,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -532,7 +532,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -503,7 +503,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</dd>
|
||||
</div>
|
||||
<div id="init.e,Noise" class="tohide">
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CNoise"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="noise.html#Noise"><span class="Identifier">Noise</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">gcsafe</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CNoise"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">p</span><span class="Other">:</span> <a href="noise.html#Noise"><span class="Identifier">Noise</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">gcsafe</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -570,7 +570,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -458,7 +458,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
</dd>
|
||||
</div>
|
||||
<div id="init.e,Secure" class="tohide">
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CSecure"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">s</span><span class="Other">:</span> <a href="secure.html#Secure"><span class="Identifier">Secure</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">gcsafe</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dt><pre><span class="Keyword">method</span> <a href="#init.e%2CSecure"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">s</span><span class="Other">:</span> <a href="secure.html#Secure"><span class="Identifier">Secure</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">gcsafe</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
@ -548,7 +548,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="section" id="19">
|
||||
<h1><a class="toc-backref" href="#19">Exports</a></h1>
|
||||
<dl class="item">
|
||||
<a href="../protocol.html#init.e,LPProtocol"><span class="Identifier">init</span></a>, <a href="../protocol.html#maxIncomingStreams=,LPProtocol,int"><span class="Identifier">maxIncomingStreams=</span></a>, <a href="../protocol.html#codec=,LPProtocol,string"><span class="Identifier">codec=</span></a>, <a href="../protocol.html#DefaultMaxIncomingStreams"><span class="Identifier">DefaultMaxIncomingStreams</span></a>, <a href="../protocol.html#codec,LPProtocol"><span class="Identifier">codec</span></a>, <a href="../protocol.html#maxIncomingStreams,LPProtocol"><span class="Identifier">maxIncomingStreams</span></a>, <a href="../protocol.html#start.e,LPProtocol"><span class="Identifier">start</span></a>, <a href="../protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a>, <a href="../protocol.html#new,typeLPProtocol,seq[string],LPProtoHandler"><span class="Identifier">new</span></a>, <a href="../protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a>, <a href="../protocol.html#stop.e,LPProtocol"><span class="Identifier">stop</span></a>
|
||||
<a href="../protocol.html#new,typeLPProtocol,seq[string],proc(Connection,string)"><span class="Identifier">new</span></a>, <a href="../protocol.html#init.e,LPProtocol"><span class="Identifier">init</span></a>, <a href="../protocol.html#maxIncomingStreams=,LPProtocol,int"><span class="Identifier">maxIncomingStreams=</span></a>, <a href="../protocol.html#codec=,LPProtocol,string"><span class="Identifier">codec=</span></a>, <a href="../protocol.html#DefaultMaxIncomingStreams"><span class="Identifier">DefaultMaxIncomingStreams</span></a>, <a href="../protocol.html#handler.t,LPProtocol,Connection,string"><span class="Identifier">handler</span></a>, <a href="../protocol.html#codec,LPProtocol"><span class="Identifier">codec</span></a>, <a href="../protocol.html#maxIncomingStreams,LPProtocol"><span class="Identifier">maxIncomingStreams</span></a>, <a href="../protocol.html#handler=,LPProtocol,proc(Connection,string)"><span class="Identifier">handler=</span></a>, <a href="../protocol.html#handler.t,LPProtocol"><span class="Identifier">handler</span></a>, <a href="../protocol.html#handler=,LPProtocol,LPProtoHandler"><span class="Identifier">handler=</span></a>, <a href="../protocol.html#start.e,LPProtocol"><span class="Identifier">start</span></a>, <a href="../protocol.html#LPProtoHandler"><span class="Identifier">LPProtoHandler</span></a>, <a href="../protocol.html#new,typeLPProtocol,seq[string],LPProtoHandler"><span class="Identifier">new</span></a>, <a href="../protocol.html#LPProtocol"><span class="Identifier">LPProtocol</span></a>, <a href="../protocol.html#stop.e,LPProtocol"><span class="Identifier">stop</span></a>
|
||||
</dl></div>
|
||||
|
||||
</div>
|
||||
@ -558,7 +558,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -422,7 +422,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -503,7 +503,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -524,7 +524,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -504,7 +504,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -502,7 +502,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1009,7 +1009,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -442,7 +442,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@ -266,7 +266,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -400,9 +400,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
accept a new TCP connection
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/transports/tcptransport.nim#L199"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/transports/tcptransport.nim#L200"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/transports/tcptransport.nim#L199" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/transports/tcptransport.nim#L200" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -415,9 +415,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
dial a peer
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/transports/tcptransport.nim#L249"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/transports/tcptransport.nim#L251"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/transports/tcptransport.nim#L249" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/transports/tcptransport.nim#L251" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -428,9 +428,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/transports/tcptransport.nim#L268"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/transports/tcptransport.nim#L270"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/transports/tcptransport.nim#L268" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/transports/tcptransport.nim#L270" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -476,7 +476,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -491,7 +491,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -583,7 +583,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:40 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -334,7 +334,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:39 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:12 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@ -219,7 +219,7 @@ window.addEventListener("DOMContentLoaded", main2);
|
||||
<ul class="simple simple-toc-section">
|
||||
<ul class="simple nested-toc-section">withValue
|
||||
<li><a class="reference" href="#withValue.m%2C%2Cuntyped%2Cuntyped%2Cuntyped"
|
||||
title="withValue[T](self: Opt[T] | Option[T]; value, body, body2: untyped): untyped">withValue[T](self: Opt[T] | Option[T]; value, body, body2: untyped): untyped</a></li>
|
||||
title="withValue[T](self: Opt[T] | Option[T]; value, body, elseStmt: untyped): untyped">withValue[T](self: Opt[T] | Option[T]; value, body, elseStmt: untyped): untyped</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
@ -324,7 +324,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<h1><a class="toc-backref" href="#17">Macros</a></h1>
|
||||
<dl class="item">
|
||||
<div id="withValue.m,,untyped,untyped,untyped" class="tohide">
|
||||
<dt><pre><span class="Keyword">macro</span> <a href="#withValue.m%2C%2Cuntyped%2Cuntyped%2Cuntyped"><span class="Identifier">withValue</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span> <span class="Operator">|</span> <span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">,</span> <span class="Identifier">body</span><span class="Other">,</span> <span class="Identifier">body2</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">untyped</span> {.
|
||||
<dt><pre><span class="Keyword">macro</span> <a href="#withValue.m%2C%2Cuntyped%2Cuntyped%2Cuntyped"><span class="Identifier">withValue</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Identifier">Opt</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span> <span class="Operator">|</span> <span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">,</span> <span class="Identifier">body</span><span class="Other">,</span> <span class="Identifier">elseStmt</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">untyped</span> {.
|
||||
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
||||
<dd>
|
||||
|
||||
@ -395,9 +395,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/utility.nim#L130"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/utility.nim#L132"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/utility.nim#L130" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/utility.nim#L132" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -407,9 +407,9 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/utility.nim#L124"
|
||||
href="https://github.com/status-im/nim-libp2p/tree/message-id-mem/libp2p/utility.nim#L125"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/utility.nim#L124" class="link-seesrc" target="_blank" >Edit</a>
|
||||
<a href="https://github.com/status-im/nim-libp2p/edit/devel/libp2p/utility.nim#L125" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
@ -444,7 +444,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:33 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:06 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -271,7 +271,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -245,7 +245,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -512,7 +512,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -362,7 +362,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:37 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:10 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -725,7 +725,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:33 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:06 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -636,7 +636,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:35 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:08 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -604,7 +604,7 @@ class="link-seesrc" target="_blank">Source</a>
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:38 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:11 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -259,13 +259,15 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
matcher: Matcher = nil)" href="libp2p/multistream.html#addHandler%2CMultistreamSelect%2Cseq%5Bstring%5D%2CLPProtocol%2CMatcher">multistream: addHandler(m: MultistreamSelect; codecs: seq[string]; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="multistream: addHandler[E](m: MultistreamSelect; codec: string; handler: LPProtoHandler |
|
||||
proc (conn: Connection; proto: string): InternalRaisesFuture[void, E];
|
||||
matcher: Matcher = nil)" href="libp2p/multistream.html#addHandler%2CMultistreamSelect%2Cstring%2C%2CMatcher">multistream: addHandler[E](m: MultistreamSelect; codec: string; handler: LPProtoHandler |
|
||||
proc (conn: Connection; proto: string): InternalRaisesFuture[void, E];
|
||||
matcher: Matcher = nil)</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="multistream: addHandler(m: MultistreamSelect; codec: string; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)" href="libp2p/multistream.html#addHandler%2CMultistreamSelect%2Cstring%2CLPProtocol%2CMatcher">multistream: addHandler(m: MultistreamSelect; codec: string; protocol: LPProtocol;
|
||||
matcher: Matcher = nil)</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="multistream: addHandler(m: MultistreamSelect; codec: string; handler: LPProtoHandler;
|
||||
matcher: Matcher = nil)" href="libp2p/multistream.html#addHandler%2CMultistreamSelect%2Cstring%2CLPProtoHandler%2CMatcher">multistream: addHandler(m: MultistreamSelect; codec: string; handler: LPProtoHandler;
|
||||
matcher: Matcher = nil)</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="addObservation" href="#addObservation"><span>addObservation:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
@ -1079,6 +1081,10 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: DefaultMaxIncomingStreams" href="libp2p/protocols/protocol.html#DefaultMaxIncomingStreams">protocol: DefaultMaxIncomingStreams</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="DefaultMaxNumElementsInNonPriorityQueue" href="#DefaultMaxNumElementsInNonPriorityQueue"><span>DefaultMaxNumElementsInNonPriorityQueue:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="pubsubpeer: DefaultMaxNumElementsInNonPriorityQueue" href="libp2p/protocols/pubsub/pubsubpeer.html#DefaultMaxNumElementsInNonPriorityQueue">pubsubpeer: DefaultMaxNumElementsInNonPriorityQueue</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="defaultMsgIdProvider" href="#defaultMsgIdProvider"><span>defaultMsgIdProvider:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="message: defaultMsgIdProvider(m: Message): Result[MessageId, ValidationResult]" href="libp2p/protocols/pubsub/rpc/message.html#defaultMsgIdProvider%2CMessage">message: defaultMsgIdProvider(m: Message): Result[MessageId, ValidationResult]</a></li>
|
||||
@ -1965,6 +1971,20 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="behavior: handlePrune(g: GossipSub; peer: PubSubPeer; prunes: seq[ControlPrune])" href="libp2p/protocols/pubsub/gossipsub/behavior.html#handlePrune%2CGossipSub%2CPubSubPeer%2Cseq%5BControlPrune%5D">behavior: handlePrune(g: GossipSub; peer: PubSubPeer; prunes: seq[ControlPrune])</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="handler" href="#handler"><span>handler:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: handler(p: LPProtocol): LPProtoHandler" href="libp2p/protocols/protocol.html#handler.t%2CLPProtocol">protocol: handler(p: LPProtocol): LPProtoHandler</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: handler(p: LPProtocol; conn: Connection; proto: string): Future[void]" href="libp2p/protocols/protocol.html#handler.t%2CLPProtocol%2CConnection%2Cstring">protocol: handler(p: LPProtocol; conn: Connection; proto: string): Future[void]</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="handler%3D" href="#handler%3D"><span>handler=:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: handler=(p: LPProtocol; handler: LPProtoHandler)" href="libp2p/protocols/protocol.html#handler%3D%2CLPProtocol%2CLPProtoHandler">protocol: handler=(p: LPProtocol; handler: LPProtoHandler)</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: handler=[E](p: LPProtocol; handler: proc (conn: Connection; proto: string): InternalRaisesFuture[
|
||||
void, E])" href="libp2p/protocols/protocol.html#handler%3D%2CLPProtocol%2Cproc%28Connection%2Cstring%29">protocol: handler=[E](p: LPProtocol; handler: proc (conn: Connection; proto: string): InternalRaisesFuture[
|
||||
void, E])</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="HandlerHolder" href="#HandlerHolder"><span>HandlerHolder:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="multistream: HandlerHolder" href="libp2p/multistream.html#HandlerHolder">multistream: HandlerHolder</a></li>
|
||||
@ -2359,7 +2379,41 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="floodsub: init(f: FloodSub)" href="libp2p/protocols/pubsub/floodsub.html#init.e%2CFloodSub">floodsub: init(f: FloodSub)</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="gossipsub: init(_: type[GossipSubParams]): GossipSubParams" href="libp2p/protocols/pubsub/gossipsub.html#init%2Ctype%5BGossipSubParams%5D">gossipsub: init(_: type[GossipSubParams]): GossipSubParams</a></li>
|
||||
data-doc-search-tag="gossipsub: init(_: type[GossipSubParams]; pruneBackoff = 1.minutes;
|
||||
unsubscribeBackoff = 5.seconds; floodPublish = true;
|
||||
gossipFactor: float64 = 0.25; d = GossipSubD; dLow = GossipSubDlo;
|
||||
dHigh = GossipSubDhi; dScore = GossipSubDlo; dOut = GossipSubDlo - 1;
|
||||
dLazy = GossipSubD; heartbeatInterval = GossipSubHeartbeatInterval;
|
||||
historyLength = GossipSubHistoryLength;
|
||||
historyGossip = GossipSubHistoryGossip; fanoutTTL = GossipSubFanoutTTL;
|
||||
seenTTL = 2.minutes; gossipThreshold = -100.0; publishThreshold = -1000.0;
|
||||
graylistThreshold = -10000.0; opportunisticGraftThreshold = 0.0;
|
||||
decayInterval = 1.seconds; decayToZero = 0.01; retainScore = 2.minutes;
|
||||
appSpecificWeight = 0.0; ipColocationFactorWeight = 0.0;
|
||||
ipColocationFactorThreshold = 1.0; behaviourPenaltyWeight = -1.0;
|
||||
behaviourPenaltyDecay = 0.999; directPeers = initTable();
|
||||
disconnectBadPeers = false; enablePX = false;
|
||||
bandwidthEstimatebps = 100000000;
|
||||
overheadRateLimit = Opt.none(tuple[bytes: int, interval: Duration]);
|
||||
disconnectPeerAboveRateLimit = false;
|
||||
maxNumElementsInNonPriorityQueue = DefaultMaxNumElementsInNonPriorityQueue): GossipSubParams" href="libp2p/protocols/pubsub/gossipsub.html#init%2Ctype%5BGossipSubParams%5D%2Cfloat64%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cfloat%2Cint">gossipsub: init(_: type[GossipSubParams]; pruneBackoff = 1.minutes;
|
||||
unsubscribeBackoff = 5.seconds; floodPublish = true;
|
||||
gossipFactor: float64 = 0.25; d = GossipSubD; dLow = GossipSubDlo;
|
||||
dHigh = GossipSubDhi; dScore = GossipSubDlo; dOut = GossipSubDlo - 1;
|
||||
dLazy = GossipSubD; heartbeatInterval = GossipSubHeartbeatInterval;
|
||||
historyLength = GossipSubHistoryLength;
|
||||
historyGossip = GossipSubHistoryGossip; fanoutTTL = GossipSubFanoutTTL;
|
||||
seenTTL = 2.minutes; gossipThreshold = -100.0; publishThreshold = -1000.0;
|
||||
graylistThreshold = -10000.0; opportunisticGraftThreshold = 0.0;
|
||||
decayInterval = 1.seconds; decayToZero = 0.01; retainScore = 2.minutes;
|
||||
appSpecificWeight = 0.0; ipColocationFactorWeight = 0.0;
|
||||
ipColocationFactorThreshold = 1.0; behaviourPenaltyWeight = -1.0;
|
||||
behaviourPenaltyDecay = 0.999; directPeers = initTable();
|
||||
disconnectBadPeers = false; enablePX = false;
|
||||
bandwidthEstimatebps = 100000000;
|
||||
overheadRateLimit = Opt.none(tuple[bytes: int, interval: Duration]);
|
||||
disconnectPeerAboveRateLimit = false;
|
||||
maxNumElementsInNonPriorityQueue = DefaultMaxNumElementsInNonPriorityQueue): GossipSubParams</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="gossipsub: init(g: GossipSub)" href="libp2p/protocols/pubsub/gossipsub.html#init.e%2CGossipSub">gossipsub: init(g: GossipSub)</a></li>
|
||||
<li><a class="reference external"
|
||||
@ -3146,11 +3200,17 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
data-doc-search-tag="protocol: new(T: type LPProtocol; codecs: seq[string]; handler: LPProtoHandler;
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type" href="libp2p/protocols/protocol.html#new%2CtypeLPProtocol%2Cseq%5Bstring%5D%2CLPProtoHandler">protocol: new(T: type LPProtocol; codecs: seq[string]; handler: LPProtoHandler;
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="protocol: new[E](T: type LPProtocol; codecs: seq[string]; handler: proc (conn: Connection;
|
||||
proto: string): InternalRaisesFuture[void, E];
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type" href="libp2p/protocols/protocol.html#new%2CtypeLPProtocol%2Cseq%5Bstring%5D%2Cproc%28Connection%2Cstring%29">protocol: new[E](T: type LPProtocol; codecs: seq[string]; handler: proc (conn: Connection;
|
||||
proto: string): InternalRaisesFuture[void, E];
|
||||
maxIncomingStreams: Opt[int] | int = Opt.none(int)): T:type</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="pubsubpeer: new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type" href="libp2p/protocols/pubsub/pubsubpeer.html#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2COpt%5BTokenBucket%5D">pubsubpeer: new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type" href="libp2p/protocols/pubsub/pubsubpeer.html#new%2Ctypedesc%5BPubSubPeer%5D%2CPeerId%2CGetConn%2COnEvent%2Cstring%2Cint%2Cint%2COpt%5BTokenBucket%5D">pubsubpeer: new(T: typedesc[PubSubPeer]; peerId: PeerId; getConn: GetConn; onEvent: OnEvent;
|
||||
codec: string; maxMessageSize: int; maxNumElementsInNonPriorityQueue: int = DefaultMaxNumElementsInNonPriorityQueue;
|
||||
overheadRateLimitOpt: Opt[TokenBucket] = Opt.none(TokenBucket)): T:type</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="rendezvous: new(T: typedesc[RendezVous]; rng: ref HmacDrbgContext = newRng()): T:type" href="libp2p/protocols/rendezvous.html#new%2Ctypedesc%5BRendezVous%5D%2Cref.HmacDrbgContext">rendezvous: new(T: typedesc[RendezVous]; rng: ref HmacDrbgContext = newRng()): T:type</a></li>
|
||||
@ -5147,7 +5207,7 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
</ul></dd>
|
||||
<dt><a name="withValue" href="#withValue"><span>withValue:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="utility: withValue[T](self: Opt[T] | Option[T]; value, body, body2: untyped): untyped" href="libp2p/utility.html#withValue.m%2C%2Cuntyped%2Cuntyped%2Cuntyped">utility: withValue[T](self: Opt[T] | Option[T]; value, body, body2: untyped): untyped</a></li>
|
||||
data-doc-search-tag="utility: withValue[T](self: Opt[T] | Option[T]; value, body, elseStmt: untyped): untyped" href="libp2p/utility.html#withValue.m%2C%2Cuntyped%2Cuntyped%2Cuntyped">utility: withValue[T](self: Opt[T] | Option[T]; value, body, elseStmt: untyped): untyped</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="utility: withValue[T](self: Opt[T] | Option[T]; value, body: untyped): untyped" href="libp2p/utility.html#withValue.t%2C%2Cuntyped%2Cuntyped">utility: withValue[T](self: Opt[T] | Option[T]; value, body: untyped): untyped</a></li>
|
||||
</ul></dd>
|
||||
@ -5362,7 +5422,7 @@ window.addEventListener('DOMContentLoaded', main);
|
||||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-04-04 15:18:41 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2024-05-01 11:15:13 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user