-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from lpgauth/parse_transform
Add parse transform to pre-compute packet (best effort)
- Loading branch information
Showing
25 changed files
with
587 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
%% encoding: UTF-8 | ||
{application,statsderl}. | ||
{modules,[statsderl,statsderl_app,statsderl_protocol,statsderl_server, | ||
statsderl_sup,statsderl_udp,statsderl_utils]}. | ||
{modules,[statsderl,statsderl_app,statsderl_pool,statsderl_protocol, | ||
statsderl_server,statsderl_sup,statsderl_transform,statsderl_udp, | ||
statsderl_utils]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
|
||
|
||
# Module statsderl_pool # | ||
* [Data Types](#types) | ||
* [Function Index](#index) | ||
* [Function Details](#functions) | ||
|
||
<a name="types"></a> | ||
|
||
## Data Types ## | ||
|
||
|
||
|
||
|
||
### <a name="type-key">key()</a> ### | ||
|
||
|
||
<pre><code> | ||
key() = iodata() | ||
</code></pre> | ||
|
||
|
||
|
||
|
||
### <a name="type-operation">operation()</a> ### | ||
|
||
|
||
<pre><code> | ||
operation() = {cast, iodata()} | {counter, <a href="#type-key">key()</a>, <a href="#type-value">value()</a>, <a href="#type-sample_rate">sample_rate()</a>} | {gauge, <a href="#type-key">key()</a>, <a href="#type-value">value()</a>} | {gauge_decrement, <a href="#type-key">key()</a>, <a href="#type-value">value()</a>} | {gauge_increment, <a href="#type-key">key()</a>, <a href="#type-value">value()</a>} | {timing, <a href="#type-key">key()</a>, <a href="#type-value">value()</a>} | {timing_now, <a href="#type-key">key()</a>, <a href="erlang.md#type-timestamp">erlang:timestamp()</a>} | {timing_now_us, <a href="#type-key">key()</a>, <a href="erlang.md#type-timestamp">erlang:timestamp()</a>} | ||
</code></pre> | ||
|
||
|
||
|
||
|
||
### <a name="type-sample_rate">sample_rate()</a> ### | ||
|
||
|
||
<pre><code> | ||
sample_rate() = number() | ||
</code></pre> | ||
|
||
|
||
|
||
|
||
### <a name="type-value">value()</a> ### | ||
|
||
|
||
<pre><code> | ||
value() = number() | ||
</code></pre> | ||
|
||
<a name="index"></a> | ||
|
||
## Function Index ## | ||
|
||
|
||
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#sample-2">sample/2</a></td><td></td></tr><tr><td valign="top"><a href="#sample_scaled-2">sample_scaled/2</a></td><td></td></tr><tr><td valign="top"><a href="#server_name-1">server_name/1</a></td><td></td></tr></table> | ||
|
||
|
||
<a name="functions"></a> | ||
|
||
## Function Details ## | ||
|
||
<a name="sample-2"></a> | ||
|
||
### sample/2 ### | ||
|
||
<pre><code> | ||
sample(Rate::<a href="#type-sample_rate">sample_rate()</a>, Operation::<a href="#type-operation">operation()</a>) -> ok | ||
</code></pre> | ||
<br /> | ||
|
||
<a name="sample_scaled-2"></a> | ||
|
||
### sample_scaled/2 ### | ||
|
||
<pre><code> | ||
sample_scaled(RateInt::non_neg_integer(), Operation::<a href="#type-operation">operation()</a>) -> ok | ||
</code></pre> | ||
<br /> | ||
|
||
<a name="server_name-1"></a> | ||
|
||
### server_name/1 ### | ||
|
||
<pre><code> | ||
server_name(X1::1..4) -> atom() | ||
</code></pre> | ||
<br /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
|
||
# Module statsderl_transform # | ||
* [Data Types](#types) | ||
* [Function Index](#index) | ||
* [Function Details](#functions) | ||
|
||
<a name="types"></a> | ||
|
||
## Data Types ## | ||
|
||
|
||
|
||
|
||
### <a name="type-forms">forms()</a> ### | ||
|
||
|
||
<pre><code> | ||
forms() = [<a href="erl_parse.md#type-abstract_form">erl_parse:abstract_form()</a> | <a href="erl_parse.md#type-form_info">erl_parse:form_info()</a>] | ||
</code></pre> | ||
|
||
<a name="index"></a> | ||
|
||
## Function Index ## | ||
|
||
|
||
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#parse_transform-2">parse_transform/2</a></td><td></td></tr></table> | ||
|
||
|
||
<a name="functions"></a> | ||
|
||
## Function Details ## | ||
|
||
<a name="parse_transform-2"></a> | ||
|
||
### parse_transform/2 ### | ||
|
||
<pre><code> | ||
parse_transform(Forms::<a href="#type-forms">forms()</a>, Options::[<a href="compile.md#type-option">compile:option()</a>]) -> <a href="#type-forms">forms()</a> | ||
</code></pre> | ||
<br /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.