Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/kataras/chronos

Package chronos provides an easy way to limit X operations per Y time in accuracy of nanoseconds. Chronos is a crucial tool when calling external, remote or even internal APIs with rate limits. The only requirement is the Go Programming Language. Chronos has no any other dependencies except the standard library. Chronos is very simple to use tool, you just declare the maximum operations(max) and in every Y time that those operations are allowed to be executed(per). Chronos has the accuracy of nanoseconds. The Acquire is blocking when needed, no any further actions neeeded by the end-developer. Using the ext/http subpackage This package is just a helper which extends the usability of the `chronos.C.Acquire` functionality. It allows easy and fast calls to external APIs with limits. Example Code:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/kataras/chronos
Keywords: go, golang, rate-limits, time
License: BSD-3-Clause
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: github.com/kataras
Dependent repositories: 1
Stars: 12 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago

    Loading...
    Readme
    Loading...