Skip to content

Commit

Permalink
Merge pull request #46 from poanetwork/dzol.28.improve-agent-document…
Browse files Browse the repository at this point in the history
…ation

[#28] Introduce section headings for documentation on writing collectors & transfers
  • Loading branch information
ferigis committed May 23, 2018
2 parents 41ea597 + a0a2f22 commit 2f87a83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/poa_agent/plugins/collector.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ defmodule POAAgent.Plugins.Collector do
{:my_collector, [:my_transfer]}
]
## Implementing A Collector Plugin
In order to implement your Collector Plugin you must implement 3 functions.
- `init_collector/1`: Called only once when the process starts
Expand Down
2 changes: 2 additions & 0 deletions lib/poa_agent/plugins/transfer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ defmodule POAAgent.Plugins.Transfer do
- `module`: Module which implements the Transfer behaviour
- `args`: Initial args which will be passed to the `init_transfer/1` function
## Implementing A Transfer Plugin
In order to implement your Transfer Plugin you must implement 3 functions.
- `init_transfer/1`: Called only once when the process starts
Expand Down

0 comments on commit 2f87a83

Please sign in to comment.