Ecosyste.ms: Packages

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

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/daaku/go.muster

Package muster provides a framework for writing libraries that internally batch operations. It will be useful to you if you're building an API that benefits from performing work in batches for whatever reason. Batching is triggered based on a maximum number of items in a batch, and/or based on a timeout for how long a batch waits before it is dispatched. For example if you're willing to wait for a maximum of a 1m duration, you can just set BatchTimeout and keep adding things. Or if you want batches of 50 just set MaxBatchSize and it will only fire when the batch is filled. For best results set both. It would be in your best interest to use this library in a hidden fashion in order to avoid unnecessary coupling. You will typically achieve this by ensuring your implementation of muster.Batch and the use of muster.Client are private.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/daaku/go.muster
License: BSD-3-Clause
Latest release: almost 9 years ago
First release: almost 9 years ago
Namespace: github.com/daaku
Last synced: 16 days ago

    Loading...
    Readme
    Loading...