redis

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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) Limit

func (r *RedisLimiter) Limit(ctx context.Context) error

func (*RedisLimiter) LimitMethod

func (r *RedisLimiter) LimitMethod(ctx context.Context, method string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL