dispather

package
v0.0.0-...-a6c227c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLimiterDispatcher

func WithLimiterDispatcher(handler http.Handler, rateLimiter limiter.RateLimiter) http.Handler

Types

type LimiterDispatcher

type LimiterDispatcher struct {
	// contains filtered or unexported fields
}

func NewLimiterDispatcher

func NewLimiterDispatcher(delegate http.Handler, rateLimiter limiter.RateLimiter) *LimiterDispatcher

func (*LimiterDispatcher) Dispatch

func (s *LimiterDispatcher) Dispatch(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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