Documentation ¶
Index ¶
- func GetRateLimitingMetricName(c *routing.Context, limiter config.GApiRateLimitingConfig) string
- func IncrementRateLimiting(currentRequestMetricName string, service service.Service)
- func InitRateLimiting()
- func IsRateLimitExceeded(rateStatus RateStatus, service service.Service) bool
- func RateLimiting(c *routing.Context) error
- func RateLimitingExpirationTime(service service.Service) int64
- type LimiterRate
- type RateStatus
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRateLimitingMetricName ¶
func GetRateLimitingMetricName(c *routing.Context, limiter config.GApiRateLimitingConfig) string
func IncrementRateLimiting ¶
func InitRateLimiting ¶
func InitRateLimiting()
func IsRateLimitExceeded ¶
func IsRateLimitExceeded(rateStatus RateStatus, service service.Service) bool
func RateLimiting ¶
Types ¶
type LimiterRate ¶
type RateStatus ¶
func RateLimitingStatusForRequest ¶
func RateLimitingStatusForRequest(currentRequestMetricName string) RateStatus
Click to show internal directories.
Click to hide internal directories.