ratelimit

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

type RedisStore struct {
	// contains filtered or unexported fields
}

RedisStore implements Echo's RateLimiterStore with a Redis token bucket.

func NewRedisStore

func NewRedisStore(client redis.UniversalClient, prefix string, rate, burst int, period, timeout time.Duration) *RedisStore

func (*RedisStore) Allow

func (s *RedisStore) Allow(identifier string) (bool, error)

Jump to

Keyboard shortcuts

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