Registry / utility / chimeracoder-tokenbucket

chimeracoder-tokenbucket

JSON →
library0.0.0-20131201223612-c5a927568de7gogounverified

A token bucket rate limiting implementation in Go.

go get github.com/ChimeraCoder/tokenbucket
INSTALL
IMPORT
SIG · CHIMERACODER-TOKEN
C
chimeracoder-tokenbucket
utilitygov0.0.0-20131201223612-c5a927568de7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tokenbucket
✓ github.com/ChimeraCoder/tokenbucket

Creates a token bucket and takes one token.

package main import ( "fmt" "time" "github.com/ChimeraCoder/tokenbucket" ) func main() { bucket := tokenbucket.NewBucket(10*time.Second, 10) fmt.Println(bucket.TakeAvailable(1)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20131201223612-c5a927568de7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
chimeracoder-tokenbucket — go get chimeracoder-tokenbucket · libregistry