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