transform

package
v0.2.0-nightly.20220401 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(b func(Config) (Transform, error)) processor.Builder

NewBuilder is a utility function for creating a processor.Builder for transforms.

Types

type Config

type Config map[string]string

Config holds configuration data for building a transform.

type Transform

type Transform func(record.Record) (record.Record, error)

Transform takes a record and if successful returns the transformed record, an error otherwise.

func (Transform) Execute

func (t Transform) Execute(_ context.Context, record record.Record) (record.Record, error)

func (Transform) Type

func (t Transform) Type() processor.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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