Ecosyste.ms: Packages
An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.
proxy.golang.org : github.com/alexrios/lbucket
Package lbucket provides support for using leaky buckets on your app. Creating a new Leaky bucket informing 3 as the bucket capacity and the frequency how the bucket leaks. Calling Refill() you're add more volume in the bucket. Note: When the bucket capacity is reached a ErrBucketReachedCap will be returned until the bucket leaks once again. A simple errors.Is could be used in this scenario: To stop the bucket leaking you can call the Fix() method. Use Size() to get to current volume in the bucket.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/alexrios/lbucket
Keywords: golang, idiomatic, leaky-bucket
License: MIT
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/alexrios
Stars: 11 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago