txfjs

package
v0.3.0-nightly.20220408 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(config transform.Config) (transform.Transform, error)

Builder parses the config and if valid returns a JS transform, an error otherwise. It requires the config field "script".

Types

type Transformer

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

Transformer is able to run transformations defined in JavaScript.

func NewTransformer

func NewTransformer(src string, logger zerolog.Logger) (*Transformer, error)

func (*Transformer) Transform

func (t *Transformer) Transform(in record.Record) (record.Record, error)

Jump to

Keyboard shortcuts

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