transformer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Projector

type Projector interface {
	Project(message *kafka.Message)
}

Projector is an interface which is used by Kafka.Transformer in order to project a kafka Message (to kafka or an external system) If you want to customize the projection, this is the interface to implement

type Transformer

type Transformer interface {
	Transform(src *kafka.Message) []*kafka.Message
}

Transformer is an interface which is used by Kafka.Transformer in order to transform a kafka Message. If nil is returned the message will be ignored

func PassThrough

func PassThrough() Transformer

PassThrough returns a transformer which does nothing, just transferring the message in a new topic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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