Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 feat: Add Load-Shedding Middleware #3264

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: update
ErfanMomeniii authored and Erfan Momeni committed Jan 4, 2025
commit a192bd126d91e6fea644650b88013404a33463a5
1 change: 1 addition & 0 deletions docs/middleware/loadshedding.md
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ func New(timeout time.Duration, loadSheddingHandler fiber.Handler, exclude func
| `exclude` | `func(fiber.Ctx) bool` | Optional function to exclude specific requests from load-shedding logic. | `nil` |

## Example Usage

Import the middleware package and integrate it into your Fiber application:

```go