JIeJaitt
f725ded92b
🔥 feat: Add Context Support to RequestID Middleware ( #3200 )
...
* Rename UserContext() to Context(). Rename Context() to RequestCtx()
* feat: add requestID in UserContext
* Update Ctxt docs and What's new
* Remove extra blank lines
* ♻️ Refactor: merge issue #3186
* 🔥 Feature: improve FromContext func and test
* 📚 Doc: improve requestid middleware
* ♻️ Refactor: Rename interface to any
* fix: Modify structure sorting to reduce memory usage
---------
Co-authored-by: Juan Calderon-Perez <jgcalderonperez@protonmail.com>
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-11-15 17:34:20 +01:00
nickajacks1
827013d789
chore: Fix testifylint errors in middleware ( #2805 )
2024-01-21 08:32:23 +01:00
Jason McNeil
2954e3bbae
♻️ v3: fix!: ContextKey collisions ( #2781 )
...
* fix: ContextKey collisions
* fix(logger): lint error
* docs(csrf): fix potential range error in example
2024-01-04 09:44:45 +01:00
Muhammed Efe Cetin
75bb02b87e
Merge remote-tracking branch 'origin/master' into v3-beta
2023-08-05 22:02:01 +03:00
Benjamin Grosse
d7b36cde54
🐛 requestid.Config.ContextKey is interface{} ( #2369 )
...
requestid.Config.ContextKey is interface{}
Consistent with c.Locals(key inteface{}, ...).
Fixes #2356
2023-03-14 19:37:10 +01:00
Muhammed Efe Çetin
088cde594d
Merge remote-tracking branch 'origin/master' into v3-beta
2023-02-05 23:43:42 +03:00
leonklingele
167a8b5e94
🚀 Feature: Add and apply more stricter golangci-lint linting rules ( #2286 )
...
* golangci-lint: add and apply more stricter linting rules
* github: drop security workflow now that we use gosec linter inside golangci-lint
* github: use official golangci-lint CI linter
* Add editorconfig and gitattributes file
2023-01-27 09:01:37 +01:00
M. Efe Çetin
5406560033
🧹 chore: make most tests parallel ( #2299 )
...
* 🧹 chore: make most tests parallel
* revert some tests
* revert some tests
* revert some tests
2023-01-15 23:21:37 +08:00
Trim21
c964fda009
v3(tests): use testify for assertion ( #2036 )
...
* replace
* write
* rewrite more
* rewrite
* rewrite
* fix
* rewrite
2022-08-22 07:57:10 +02:00
M. Efe Çetin
a458bd344c
✨ v3 (feature): convert fiber.Ctx type to interface ( #1928 )
...
* ✨ v3: convert fiber.Ctx type to interface
* update ctx methods
* add new methods to customize ctx, fix some problems
* update comments.
* fix something
2022-07-13 07:48:29 +02:00
Muhammed Efe Çetin
1188144d78
🎉 v3: init
2022-05-31 17:35:49 +03:00
LeoZhan
00750b8989
refactor: format the code
2020-11-01 00:32:01 +08:00
Tom
c5792a3953
📦 Add the request ID to locals
2020-10-21 20:14:12 +01:00
Konstantinos Lypitkas
67a45db8e2
Add test assertion to requestid
2020-10-12 19:05:48 +03: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
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