collector

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 interface{}) error

func (*FuncCollector) Configure

func (c *FuncCollector) Configure(props map[string]interface{}) error

func (*FuncCollector) Open

func (c *FuncCollector) Open(ctx api.StreamContext) error

Open is the starting point that starts the collector

Jump to

Keyboard shortcuts

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