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 ¶
func (m *Middleware) GetComponentMetadata() map[string]string
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.
Click to show internal directories.
Click to hide internal directories.