127 lines
3.8 KiB
HTML
127 lines
3.8 KiB
HTML
|
<!DOCTYPE html>
|
|||
|
<html lang="en">
|
|||
|
<head>
|
|||
|
<meta charset="utf-8">
|
|||
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|||
|
<meta name="generator" content="ExDoc v0.18.3">
|
|||
|
<title>POAAgent.Plugins.Collectors.Eth.Pending – poa_agent v0.1.0</title>
|
|||
|
<link rel="stylesheet" href="dist/app-480ffdc169.css" />
|
|||
|
|
|||
|
<script src="dist/sidebar_items-d9b3f5cff8.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</head>
|
|||
|
<body data-type="modules">
|
|||
|
<script>try { if(localStorage.getItem('night-mode')) document.body.className += ' night-mode'; } catch (e) { }</script>
|
|||
|
|
|||
|
<div class="main">
|
|||
|
<button class="sidebar-button sidebar-toggle">
|
|||
|
<span class="icon-menu" aria-hidden="true"></span>
|
|||
|
<span class="sr-only">Toggle Sidebar</span>
|
|||
|
</button>
|
|||
|
<button class="sidebar-button night-mode-toggle">
|
|||
|
<span class="icon-theme" aria-hidden="true"></span>
|
|||
|
<span class="sr-only">Toggle Theme</span>
|
|||
|
</button>
|
|||
|
<section class="sidebar">
|
|||
|
|
|||
|
|
|||
|
<a href="api-reference.html" class="sidebar-projectLink">
|
|||
|
<div class="sidebar-projectDetails">
|
|||
|
<h1 class="sidebar-projectName">
|
|||
|
poa_agent
|
|||
|
</h1>
|
|||
|
<h2 class="sidebar-projectVersion">
|
|||
|
v0.1.0
|
|||
|
</h2>
|
|||
|
</div>
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
<form class="sidebar-search" action="search.html">
|
|||
|
<button type="submit" class="search-button">
|
|||
|
<span class="icon-search" aria-hidden="true"></span>
|
|||
|
</button>
|
|||
|
<input name="q" type="text" id="search-list" class="search-input" placeholder="Search" aria-label="Search" autocomplete="off" />
|
|||
|
</form>
|
|||
|
|
|||
|
<ul class="sidebar-listNav">
|
|||
|
<li><a id="extras-list" href="#full-list">Pages</a></li>
|
|||
|
|
|||
|
|
|||
|
<li><a id="modules-list" href="#full-list">Modules</a></li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
<div class="gradient"></div>
|
|||
|
<ul id="full-list" class="sidebar-fullList"></ul>
|
|||
|
</section>
|
|||
|
|
|||
|
<section class="content">
|
|||
|
<div class="content-outer">
|
|||
|
<div id="content" class="content-inner">
|
|||
|
|
|||
|
|
|||
|
<h1>
|
|||
|
<small class="visible-xs">poa_agent v0.1.0</small>
|
|||
|
POAAgent.Plugins.Collectors.Eth.Pending
|
|||
|
|
|||
|
<a href="https://github.com/poanetwork/poa-netstats-agent/blob/v0.1.0/lib/poa_agent/plugins/collectors/eth/pending.ex#L1" title="View Source" class="view-source" rel="help">
|
|||
|
<span class="icon-code" aria-hidden="true"></span>
|
|||
|
<span class="sr-only">View Source</span>
|
|||
|
</a>
|
|||
|
|
|||
|
</h1>
|
|||
|
|
|||
|
|
|||
|
<section id="moduledoc">
|
|||
|
<p>This is a Collector’s Plugin which makes requests to a Ethereum node in order to know if
|
|||
|
the “pending” has been changed.</p>
|
|||
|
<p>This Collector needs the url of the node to iteract. That url must be placed in the args field
|
|||
|
in the config file. For example:</p>
|
|||
|
<pre><code class="elixir">{:eth_pending, POAAgent.Plugins.Collectors.Eth.Pending, 500, :eth_pending, [url: "http://localhost:8545"]}</code></pre>
|
|||
|
<p>In this example, the Collector will check with the Ethereum node every 500 miliseconds if the pending of the
|
|||
|
node has changed. If that is the case it will send it to the Transfers
|
|||
|
encapsulated in a <code class="inline">POAAgent.Entity.Ethereum.Pending</code> struct</p>
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<footer class="footer">
|
|||
|
<p>
|
|||
|
<span class="line">
|
|||
|
Built using
|
|||
|
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" rel="help" target="_blank">ExDoc</a> (v0.18.3),
|
|||
|
</span>
|
|||
|
<span class="line">
|
|||
|
designed by
|
|||
|
<a href="https://twitter.com/dignifiedquire" target="_blank" title="@dignifiedquire">Friedel Ziegelmayer</a>.
|
|||
|
</span>
|
|||
|
</p>
|
|||
|
</footer>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</section>
|
|||
|
</div>
|
|||
|
<script src="dist/app-9bd040e5e5.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</body>
|
|||
|
</html>
|
|||
|
|