Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RateLimiterConfig = middleware.RateLimiterConfig{ Store: middleware.NewRateLimiterMemoryStoreWithConfig( middleware.RateLimiterMemoryStoreConfig{Rate: 60, Burst: 300, ExpiresIn: time.Minute}, ), IdentifierExtractor: func(ctx echo.Context) (string, error) { return ctx.RealIP(), nil }, ErrorHandler: func(context echo.Context, err error) error { return context.JSON(http.StatusTooManyRequests, nil) }, DenyHandler: func(context echo.Context, identifier string, err error) error { return context.JSON(http.StatusForbidden, nil) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.