M. Efe Çetin
691d2e6ad5
🗑️ deprecate: go 1.14 & go 1.15 support deprecation ( #2172 )
...
* 🗑️ deprecate: go 1.14 & go 1.15 support deprecation
https://github.com/valyala/fasthttp/pull/1379
* fix tests
2022-10-26 11:51:50 +02:00
Gusted
7b7dcf29f7
♻️ Tidy up the codebase ( #1613 )
...
* run gofmt
* add t.Helper()
* Simplify assigns
* Simplify make operation
* Remove unused field in struct
* Fix typo
* Run gofumpt ./
* Consistent spacing
* len(...) can never be negative
* Use ReplaceAll
* Simplify operation
* Remove deadcode
* Fix typo
* Tidy up `} else { if ...`
* Fix AssertEqual
* Remove t.Helper() to fix go1.14.15
2021-11-05 08:00:03 +01:00
Gusted
36796ee7a1
fix: remove `Test_Limiter_Cheat` test ( #1595 )
2021-10-25 07:04:56 +02:00
Gusted
e6feb36827
feat: add sliding window as option for limiter middleware ( #1580 )
...
- Add the options to use your own middleware(should be more modular over time).
- Add the Sliding window option(see #1247 )
- A little bit better polished version of #1247 .
2021-10-18 09:13:53 +02:00
Ali Eren Öztürk
9c37b4c1c5
Fix limit middleware skip options ( #1568 )
...
* fix limit middleware skip options
* fix limiter middleware remaining count
* used constant StatusBadRequest instead of int 400
2021-10-11 18:31:37 +02:00
Ali Eren Öztürk
2aef5f8e01
limiter middleware new options: SkipFailedRequests, SkipSuccessfulRequests ( #1542 )
2021-09-28 10:10:29 +02:00
Fenny
bb3a7fe5da
🩹 fix cache
...
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-11-17 08:33:07 +01:00
Fenny
8bd50de610
🧹 housekeeping
2020-11-11 13:54:27 +01:00
Fenny
0d3d6d9fe8
📦 update fasthttp and storage interface
2020-11-06 01:52:05 +01:00
Fenny
7892ab62bf
📦 update Storage behaviour
2020-10-31 07:51:44 +01:00
Fenny
c863519f54
✏ refactor unit test
...
Co-Authored-By: Tom <tom@tdpain.net>
2020-10-28 02:31:30 +01:00
Fenny
ecdda95e15
💼 implement Storage
2020-10-28 02:29:47 +01:00
Fenny
8334eb1f9e
🏬 clean storage in limiter
2020-10-27 08:12:53 +01:00
Tom
66d2e7deda
📦 Switch to fiber.Storage and msgp
2020-10-26 21:25:30 +00:00
Tom
3308a32a3a
📦 Change default configuration and add test for custom store
2020-10-26 11:11:55 +00:00
Tom
23bddfd23f
✅ I promise this is the last commit like this
2020-10-26 11:11:55 +00:00
Tom
59f2497b48
✅ I am stupid
2020-10-26 11:11:55 +00:00
Tom
bc3b69ccca
✅ Fix gosec and tests
2020-10-26 11:11:54 +00:00
Tom
87419a26d7
✅ Update limiter middleware tests
2020-10-26 11:11:53 +00:00
kiyon
616ff8f532
👷 remove unnecessary fiber app config
2020-09-17 13:41:06 +08:00
kiyon
e13411e184
👷 improve mw test cases
...
add Next test case
2020-09-16 09:44:05 +08:00
Fenny
9bc4f6298d
🧪 update limiter test case
2020-09-15 20:43:22 +02:00
Fenny
2768ea2a77
🙌 make utils public
...
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:12:29 +02:00
Fenny
a3cac71ae8
🔦 move utils to internal
2020-09-14 09:09:06 +02:00
Fenny
ec5d66e7a8
⚡ v2
2020-09-13 11:20:11 +02:00