This website requires JavaScript.
Explore
Help
Register
Sign In
go
/
echo
Watch
1
Star
0
Fork
0
You've already forked echo
mirror of
https://github.com/labstack/echo.git
synced
2024-11-28 08:38:39 +02:00
Code
Issues
Releases
Activity
0d47b7e6a9
echo
/
.gitignore
9 lines
62 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Changes based on comments for #430 Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-17 00:53:27 +02:00
.DS_Store
Updated ci Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2017-06-07 20:10:09 +02:00
coverage.txt
cors: not checking for origin header Signed-off-by: Vishal Rana <vr@labstack.com>
2016-11-13 00:05:41 +02:00
_test
Fixed build Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-11 23:55:11 +02:00
vendor
Fixed #954 Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-15 01:30:53 +02:00
.idea
*.iml
Fixed build Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-29 04:08:45 +02:00
*.out
adds middleware for rate limiting (#1724) * adds middleware for rate limiting * added comment for InMemoryStore ShouldAllow * removed redundant mutex declaration * fixed lint issues * removed sleep from tests * improved coverage * refactor: renames Identifiers, includes default SourceFunc * Added last seen stats for visitor * uses http Constants for improved readdability adds default error handler * used other handler apart from default handler to mark custom error handler for rate limiting * split tests into separate blocks added an error pair to IdentifierExtractor Includes deny handler for explicitly denying requests * adds comments for exported members Extractor and ErrorHandler * makes cleanup implementation inhouse * Avoid race for cleanup due to non-atomic access to store.expiresIn * Use a dedicated producer for rate testing * tidy commit * refactors tests, implicitly tests lastSeen property on visitor switches NewRateLimiterMemoryStore constructor to Referential Functions style (Advised by @pafuent) * switches to mock of time module for time based tests tests are now fully deterministic * improved coverage * replaces Rob Pike referential options with more conventional struct configs makes cleanup asynchronous * blocks racy access to lastCleanup * Add benchmark tests for rate limiter * Add rate limiter with sharded memory store * Racy access to store.lastCleanup eliminated Merges in shiny sharded map implementation by @lammel * Remove RateLimiterShradedMemoryStore for now * Make fields for RateLimiterStoreConfig public for external configuration * Improve docs for RateLimiter usage * Fix ErrorHandler vs. DenyHandler usage for rate limiter * Simplify NewRateLimiterMemoryStore * improved coverage * updated errorHandler and denyHandler to use echo.HTTPError * Improve wording for error and comments * Remove duplicate lastSeen marking for Allow * Improve wording for comments * Add disclaimer on perf characteristics of memory store * changes Allow signature on rate limiter to return err too Co-authored-by: Roland Lammel <rl@neotel.at>
2021-01-15 22:53:15 +02:00
.vscode
Reference in New Issue
Copy Permalink