ratelimit

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRateLimitMiddleware

func NewRateLimitMiddleware(_ logger.Logger) middleware.Middleware

NewRateLimitMiddleware returns a new ratelimit middleware.

Types

type Middleware

type Middleware struct{}

Middleware is an ratelimit middleware.

func (*Middleware) GetComponentMetadata added in v1.11.0

func (m *Middleware) GetComponentMetadata() (metadataInfo contribMetadata.MetadataMap)

func (*Middleware) GetHandler

func (m *Middleware) GetHandler(_ context.Context, metadata middleware.Metadata) (func(next http.Handler) http.Handler, error)

GetHandler returns the HTTP handler provided by the middleware.

Jump to

Keyboard shortcuts

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