Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hachreak/limitless_client_erl
An Erlang driver for Limitless distributed rate-limiter.
https://github.com/hachreak/limitless_client_erl
driver erlang erlang-libraries erlang-library limitless rate-limiter
Last synced: 14 days ago
JSON representation
An Erlang driver for Limitless distributed rate-limiter.
- Host: GitHub
- URL: https://github.com/hachreak/limitless_client_erl
- Owner: hachreak
- License: other
- Created: 2017-06-10T13:18:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-10T13:18:56.000Z (over 7 years ago)
- Last Synced: 2024-11-06T13:00:44.899Z (2 months ago)
- Topics: driver, erlang, erlang-libraries, erlang-library, limitless, rate-limiter
- Language: Erlang
- Homepage: https://github.com/hachreak/limitless_client_erl
- Size: 10.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
limitless_client_erl
====================An Erlang driver for [limitless](https://github.com/hachreak/limitless)
distributed rate-limiter.Build
-----$ rebar3 compile
Run
---Run first the
[limitless service](https://github.com/hachreak/limitless_service).
It's running a complete rate-limiter service.
You can run with demo configuration with:$ git clone https://github.com/hachreak/limitless_service.git
$ cd limitless_service
$ make node1Now, open a new shell and run erlang with:
$ git clone https://github.com/hachreak/limitless_client_erl.git
$ cd limitless_client_erl
$ rebar3 shell --config priv/example.config --apps limitless_client_erl
1> limitless_client_erl:setup_objectid(mypool, <<"token1">>, <<"token">>).
{ok,#{}}
2> limitless_client_erl:is_reached_object_id(mypool, <<"token1">>).
{ok,#{<<"info">> => [#{<<"extra">> => [#{<<"expiry">> => 86382,
<<"max">> => 1000,
<<"remaining">> => 1000,
<<"type">> => <<"Token-Daily">>},
#{<<"expiry">> => 882,
<<"max">> => 100,
<<"remaining">> => 100,
<<"type">> => <<"Token-15min">>}],
<<"is_reached">> => false}],
<<"is_reached">> => false}}