Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRateLimiter ¶
func NewRateLimiter(requestsPerSecond float64, burst int) gin.HandlerFunc
the bucket is filled automatically when the request is done without using cpu all the time
Types ¶
type RateLimiterConfig ¶
type RateLimiterConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.