github.com/kevinms/leakybucket-go (go): Package leakybucket implements a scalable leaky bucket algorithm.  There are at least two different definitions of the leaky bucket algorithm. This package implements the leaky bucket as a meter. For more details see:  https://en.wikipedia.org/wiki/Leaky_bucket#As_a_meter  This means it is the exact mirror of a token bucket.  A Collector is a convenient way to keep track of multiple LeakyBucket's. Buckets are associated with string keys for fast lookup. It can dynamically add new buckets and automatically remove them as they become empty, freeing up resources.
Keywords: golang