1. 09 5月, 2021 8 次提交
  2. 27 4月, 2021 1 次提交
  3. 18 4月, 2021 1 次提交
  4. 16 4月, 2021 1 次提交
  5. 09 4月, 2021 1 次提交
  6. 08 4月, 2021 1 次提交
  7. 06 4月, 2021 3 次提交
  8. 12 3月, 2021 1 次提交
  9. 09 3月, 2021 1 次提交
  10. 08 3月, 2021 4 次提交
  11. 06 3月, 2021 1 次提交
    • M
      Refactor router for readability (#1796) · 664cf8c1
      Martti T 提交于
      * refactor router tests to table driven (this way it is easier to debug test cases with breakpoints)
      * refactor router variables to be more readable
      664cf8c1
  12. 03 3月, 2021 2 次提交
  13. 01 3月, 2021 1 次提交
  14. 27 2月, 2021 2 次提交
  15. 26 2月, 2021 1 次提交
  16. 12 2月, 2021 1 次提交
  17. 11 2月, 2021 2 次提交
  18. 08 2月, 2021 1 次提交
  19. 16 1月, 2021 1 次提交
    • B
      adds middleware for rate limiting (#1724) · 7c8592a7
      Benjamin Chibuzor-Orie 提交于
      * 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: NRoland Lammel <rl@neotel.at>
      7c8592a7
  20. 08 1月, 2021 1 次提交
  21. 05 1月, 2021 2 次提交
  22. 04 1月, 2021 2 次提交
    • V
      Update README.md · f7180796
      Vishal Rana 提交于
      f7180796
    • S
      Do not handle special trailing slash case for partial prefix (#1741) · a9df8303
      stffabi 提交于
      * Add tests for issue #1739
      * Handle special trailing slash case only for a matching prefix
      
      Only handle the special trailing slash case if the whole prefix matches to avoid matching   
      a wrong route for overlapping prefixes, e.g. /users/* for the path /users_prefix/ where
      the route is only a partial prefix of the requested path.
      a9df8303
  23. 03 1月, 2021 1 次提交