transforms

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteColumnTransName = "delete-column"
View Source
const RenameColumnTransName = "rename-column"

Variables

This section is empty.

Functions

func FindColumn

func FindColumn(data map[string]interface{}, name string) interface{}

Types

type DeleteColumnTrans added in v0.0.2

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

func (*DeleteColumnTrans) NewTransform added in v0.0.2

func (dct *DeleteColumnTrans) NewTransform(config map[string]interface{}) error

func (*DeleteColumnTrans) Transform added in v0.0.2

func (dct *DeleteColumnTrans) Transform(msg *core.Msg) bool

type MatcherTransforms

type MatcherTransforms []core.Transform

func NewMatcherTransforms

func NewMatcherTransforms(transConfigs []config.TransformConfig, routers *metas.Routers) (matcher MatcherTransforms)

func (MatcherTransforms) IterateTransforms

func (m MatcherTransforms) IterateTransforms(msg *core.Msg) bool

func (MatcherTransforms) Start

func (m MatcherTransforms) Start(in chan *core.Msg, out chan *core.Msg)

type RenameColumnTrans

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

func (*RenameColumnTrans) NewTransform

func (rct *RenameColumnTrans) NewTransform(config map[string]interface{}) error

func (*RenameColumnTrans) Transform

func (rct *RenameColumnTrans) Transform(msg *core.Msg) bool

Jump to

Keyboard shortcuts

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