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

Top 8.6% on proxy.golang.org

proxy.golang.org : github.com/thejerf/tabc

Package tabc implement time-aware bytestream consolidation - given an incoming stream of []byte over time, it assembles the chunks into a more meaningful collection of []byte chunks. This was originally written to take a stream of keystrokes over a terminal session in realtime, and assemble them into more meaningful chunks for logging purposes, but may be useful for other similar uses. This package provides io.Writer- and io.Reader-compatible wrapper objects for your convenience. The io.Reader semantics are basically unchanged from normal io.Reader semantics. However, because the entire purpose of this package is to temporally detach the input of bytes and the output of them, the semantics of io.Writer are more complicated, because there may be a time delay before the underlying writer is written to. If that write fails, it will fail at a time where it can not simply return an error. Therefore, the error may manifest either on later .Write calls, or possibly at .Close time, when the output is flushed all the way through. For similar reasons, the consolidator will return that bytes have been written before they have actually been written, so simply adding together the number bytes returned by the consolidator's .Write function may overestimate the number of bytes actually written. Consequently, it is particularly important to check the errors, even from .Close, when using a Consolidator, as you may otherwise miss write errors.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/thejerf/tabc
License: MIT
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: github.com/thejerf
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago

    Loading...
    Readme
    Loading...