module
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Mar 16, 2024
License: MIT
Opens a new window with license information.
README
¶
orbit-contrib
Collection of middlewares created by the community
Middlewares
The following middlewares can be used with orbit
and gin
.
All middlewares are located in the pkg directory.
1. RateLimiter
The RateLimiter middleware is used to limit the rate of requests. It is based on the token bucket algorithm.
2. Compressor
The Compressor middleware is used to compress the response body. It supports gzip
and deflate
algorithms.
3. Rewriter
The Rewriter middleware is used to rewrite the request path. It supports rewriting of url.URL
related elements.
Directories
¶
internal
|
|
|
|
|
|
pkg
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.