Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ install:
- git clone https://github.com/openresty/no-pool-nginx.git ../no-pool-nginx
- git clone https://github.com/openresty/lua-resty-lrucache.git ../lua-resty-lrucache
- git clone https://github.com/openresty/lua-resty-core.git ../lua-resty-core
- git clone https://github.com/openresty/lua-resty-lock.git ../lua-resty-lock
- git clone -b v2.1-agentzh https://github.com/openresty/luajit2.git

script:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ the traffic, either request rate or request concurrency (or both).

* [resty.limit.req](lib/resty/limit/req.md) provides request rate limiting and adjustment based on the "leaky bucket" method.
* [resty.limit.conn](lib/resty/limit/conn.md) provides request concurrency level limiting and adjustment based on extra delays.
* [resty.limit.traffic](lib/resty/limit/traffic.md) provides an aggregator to combine multiple instances of either the [resty.limit.req](lib/resty/limit/req.md) or [resty.limit.conn](lib/resty/limit/conn.md) classes (or both).
* [resty.limit.count](lib/resty/limit/count.md) provides request counts limiting by a fixed number of requests in given time window.
* [resty.limit.rate](lib/resty/limit/rate.md) provides request rate limiting and adjustment based on the "token bucket" method.
* [resty.limit.traffic](lib/resty/limit/traffic.md) provides an aggregator to combine multiple instances of either the [resty.limit.req](lib/resty/limit/req.md) or [resty.limit.conn](lib/resty/limit/conn.md) classes or any user class which has a compatible API (or multiple).

Please check out these Lua modules' own documentation for more details.

Expand Down Expand Up @@ -363,6 +365,8 @@ See Also
========
* module [resty.limit.req](lib/resty/limit/req.md)
* module [resty.limit.conn](lib/resty/limit/conn.md)
* module [resty.limit.count](lib/resty/limit/count.md)
* module [resty.limit.rate](lib/resty/limit/rate.md)
* module [resty.limit.traffic](lib/resty/limit/traffic.md)
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
* OpenResty: https://openresty.org/
Expand Down
3 changes: 2 additions & 1 deletion lib/resty/limit/conn.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ key so that we can avoid a single client from flooding our service with too many

Please note that this module
does not prefix nor suffix the user key so it is the user's responsibility to ensure the key
is unique in the `lua_shared_dict` shm zone).
is unique in the `lua_shared_dict` shm zone.
* `commit` is a boolean value. If set to `true`, the object will actually record the event
in the shm zone backing the current object; otherwise it would just be a "dry run" (which is the default).

Expand Down Expand Up @@ -403,6 +403,7 @@ See Also
========
* module [resty.limit.req](./req.md)
* module [resty.limit.count](./count.md)
* module [resty.limit.rate](./rate.md)
* module [resty.limit.traffic](./traffic.md)
* library [lua-resty-limit-traffic](../../../README.md)
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
Expand Down
28 changes: 26 additions & 2 deletions lib/resty/limit/count.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Table of Contents
* [incoming](#incoming)
* [uncommit](#uncommit)
* [Limiting Granularity](#limiting-granularity)
* [Installation](#installation)
* [Community](#community)
* [English Mailing List](#english-mailing-list)
* [Chinese Mailing List](#chinese-mailing-list)
* [Bugs and Patches](#bugs-and-patches)
* [Authors](#authors)
* [Copyright and License](#copyright-and-license)
Expand Down Expand Up @@ -124,7 +126,7 @@ This method accepts the following arguments:
as the key so that we limit rate per host name. Otherwise, we can also use the authorization header value as the
key so that we can set a rate for individual user.

Please note that this module does not prefix nor suffix the user key so it is the user's responsibility to ensure the key is unique in the `lua_shared_dict` shm zone).
Please note that this module does not prefix nor suffix the user key so it is the user's responsibility to ensure the key is unique in the `lua_shared_dict` shm zone.
* `commit` is a boolean value. If set to `true`, the object will actually record the event
in the shm zone backing the current object; otherwise it would just be a "dry run" (which is the default).

Expand Down Expand Up @@ -166,12 +168,32 @@ Please see [library installation instructions](../../../README.md#installation).

[Back to TOC](#table-of-contents)

Community
=========

[Back to TOC](#table-of-contents)

English Mailing List
--------------------

The [openresty-en](https://groups.google.com/group/openresty-en) mailing list is for English speakers.

[Back to TOC](#table-of-contents)

Chinese Mailing List
--------------------

The [openresty](https://groups.google.com/group/openresty) mailing list is for Chinese speakers.

[Back to TOC](#table-of-contents)

Bugs and Patches
================

Please report bugs or submit patches by

1. creating a ticket on the [GitHub Issue Tracker](https://github.com/openresty/lua-resty-limit-traffic/issues),
1. or posting to the [OpenResty community](#community).

[Back to TOC](#table-of-contents)

Expand Down Expand Up @@ -204,7 +226,9 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

See Also
========
* module [resty.limit.req](./req.md)
* module [resty.limit.conn](./conn.md)
* module [resty.limit.rate](./rate.md)
* module [resty.limit.traffic](./traffic.md)
* library [lua-resty-limit-traffic](../../../README.md)
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
Expand Down
Loading