Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopLimiter ¶
type NoopLimiter struct{}
func NewNoopLimiter ¶
func NewNoopLimiter() *NoopLimiter
func (NoopLimiter) Allow ¶
func (n NoopLimiter) Allow(ctx context.Context, key string, limit, duration int) (*redis_rate.Result, error)
func (NoopLimiter) ShouldAllow ¶
func (n NoopLimiter) ShouldAllow(ctx context.Context, key string, limit, duration int) (*redis_rate.Result, error)
Click to show internal directories.
Click to hide internal directories.