orbit-contrib

module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT

README

orbit-contrib

Collection of middlewares created by the community

logo

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

Path Synopsis
internal
pkg
compressor Module
ratelimiter Module
rewriter Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL