transform

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 8 Imported by: 0

README

transform

Contains interfaces and methods for transforming data as it moves from a source to a sink.

Each transform must use a select statement to read and write data to its channels and check if context was cancelled to prevent goroutine leaks (learn more about goroutine leaks here).

Information for each transform is available in the GoDoc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer added in v0.5.0

type Transformer interface {
	Transform(context.Context, *sync.WaitGroup, *config.Channel, *config.Channel) error
}

func New added in v0.8.0

func New(ctx context.Context, cfg config.Config) (Transformer, error)

New returns a configured Transformer from a transform configuration.

Jump to

Keyboard shortcuts

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