Documentation
¶
Index ¶
- func GetRateLimitingMetricName(c *routing.Context, limiter config.GApiRateLimitingConfig) string
- func IncrementRateLimiting(currentRequestMetricName string, service servicediscovery.Service)
- func InitRateLimiting()
- func IsRateLimitExceeded(rateStatus RateStatus, service servicediscovery.Service) bool
- func RateLimiting(c *routing.Context) error
- func RateLimitingExpirationTime(service servicediscovery.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 IncrementRateLimiting(currentRequestMetricName string, service servicediscovery.Service)
func InitRateLimiting ¶
func InitRateLimiting()
func IsRateLimitExceeded ¶
func IsRateLimitExceeded(rateStatus RateStatus, service servicediscovery.Service) bool
func RateLimiting ¶
func RateLimiting(c *routing.Context) error
func RateLimitingExpirationTime ¶
func RateLimitingExpirationTime(service servicediscovery.Service) int64
Types ¶
type LimiterRate ¶
type RateStatus ¶
func RateLimitingStatusForRequest ¶
func RateLimitingStatusForRequest(currentRequestMetricName string) RateStatus
type Updater ¶
type Updater struct {
NewRate RateStatus
Service servicediscovery.Service
ReqName string
}
Click to show internal directories.
Click to hide internal directories.