stream

package
v1.100.1-cluster Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(bc *handshake.BufferedConn, callback func(rows []storage.MetricRow) error, isReadOnly func() bool) error

Parse parses data sent from vminsert to bc and calls callback for parsed rows. Optional function isReadOnly must return true if the storage cannot accept new data. In this case the data read from bc isn't accepted and the readonly status is sent back bc.

The callback can be called concurrently multiple times for streamed data from req.

callback shouldn't hold block after returning.

Types

This section is empty.

Jump to

Keyboard shortcuts

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