MCPcopy
hub / github.com/gofiber/fiber / SlidingWindow

Struct SlidingWindow

middleware/limiter/limiter_sliding.go:15–15  ·  view source on GitHub ↗

SlidingWindow implements the sliding-window rate limiting strategy.

Source from the content-addressed store, hash-verified

13
14// SlidingWindow implements the sliding-window rate limiting strategy.
15type SlidingWindow struct{}
16
17// New creates a new sliding window middleware handler
18func (SlidingWindow) New(cfg *Config) fiber.Handler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected