Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMaxBatchSizeExceeded is returned when a points batch exceeds // the defined upper limit in bytes. This pertains to the size of the // batch after inflation from any compression (i.e. ungzipped). ErrMaxBatchSizeExceeded = errors.New("points batch is too large") )
Functions ¶
func BatchReadCloser ¶
func BatchReadCloser(rc io.ReadCloser, encoding string, maxBatchSizeBytes int64) (io.ReadCloser, error)
BatchReadCloser (potentially) wraps an io.ReadCloser in Gzip decompression and limits the reading to a specific number of bytes.
Types ¶
type ParsedPoints ¶
ParsedPoints contains the points parsed as well as the total number of bytes after decompression.
Click to show internal directories.
Click to hide internal directories.