Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisLimiter ¶
type RedisLimiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
func NewLimiter(client *redis.Client, opts map[string][]*ratelimit.RateLimitOptions) *RedisLimiter
func (*RedisLimiter) LimitMethod ¶
func (r *RedisLimiter) LimitMethod(ctx context.Context, method string) error
Click to show internal directories.
Click to hide internal directories.