stream

package
v0.6.1-victorialogs Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStream

func ParseStream(r io.Reader, isGzipped bool, processBody func([]byte) ([]byte, error), callback func(tss []prompbmarshal.TimeSeries) error) error

ParseStream parses OpenTelemetry protobuf or json data from r and calls callback for the parsed rows.

callback shouldn't hold tss items after returning.

optional processBody can be used for pre-processing the read request body from r before parsing it in OpenTelemetry format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL