ratelimiter

package
v2.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package ratelimiter implements a rate limiting and traffic shaping middleware with a set of token buckets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config dynamic.RateLimit, name string) (http.Handler, error)

New returns a rate limiter middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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