Expand description
Tocket
This library provides implementation of token bucket algorithm and some storage implementations.
Available storages:
You can implement your own storage (e.g. Postgres).
Features
redis-impl
- redis storage implementationdistributed-impl
- distributed storage implementation
Re-exports
Modules
Structs
State of token bucket.
Rate limiter that implements token bucket algorithm.
Struct that implements token bucket algorithm.
Traits
Trait that provides function for tokens acquiring.