//
pkg.gl
Category
github.com/go-zoox/counter
bucket
package
1.2.1
Repository:
https://github.com/go-zoox/counter.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
3
Files
88 SLOC
#
Functions
NewMemory
NewMemory creates a new in-memory bucket.
NewRedis
NewRedis creates a new in-Redis bucket.
#
Structs
KV
KV is a in-KV bucket.
Memory
Memory is a in-memory bucket.
Redis
Redis is a in-Redis bucket.
Value
Value is the bucket value.
#
Interfaces
Bucket
Bucket is the butket to store the rate limit.
#
Type aliases
RedisConfig
RedisConfig is the configuration for Redis.