collector

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorFunc

type CollectorFunc func(api.StreamContext, interface{}) error

CollectorFunc is a function used to colllect incoming stream data. It can be used as a stream sink.

type FuncCollector

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

FuncCollector is a colletor that uses a function to collect data. The specified function must be of type:

CollectorFunc

func Func

Func creates a new value *FuncCollector that will use the specified function parameter to collect streaming data.

func (*FuncCollector) Close

func (*FuncCollector) Collect

func (c *FuncCollector) Collect(ctx api.StreamContext, item api.RawTuple) error

func (*FuncCollector) Connect

func (*FuncCollector) Provision

func (c *FuncCollector) Provision(ctx api.StreamContext, configs map[string]any) error

Jump to

Keyboard shortcuts

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