multi

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubWriter

type SubWriter interface {
	Write(key.Key, []block.Block) error
}

SubWriter represents the sub-writer

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer represents a writer that writes into multiple sub-writers.

func New

func New(writers ...SubWriter) *Writer

New ...

func (*Writer) Run added in v1.2.5

func (w *Writer) Run(ctx context.Context) (async.Task, error)

Run launches the asynchronous infinite loop for streamers to start streaming data

func (*Writer) Stream added in v1.2.5

func (w *Writer) Stream(row block.Row) error

Stream streams the data to the sink

func (*Writer) Write

func (w *Writer) Write(key key.Key, blocks []block.Block) error

Write writes the data to the sink.

Jump to

Keyboard shortcuts

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