Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimiterBucketRule ¶
type LimiterIface ¶
type LimiterIface interface { Key(c *gin.Context) string GetBucket(key string) (*ratelimit.Bucket, bool) AddBuckets(rules ...LimiterBucketRule) LimiterIface }
func NewMethodLimiter ¶
func NewMethodLimiter() LimiterIface
type MethodLimiter ¶
type MethodLimiter struct {
*Limiter
}
func (MethodLimiter) AddBuckets ¶
func (m MethodLimiter) AddBuckets(rules ...LimiterBucketRule) LimiterIface
Click to show internal directories.
Click to hide internal directories.