processors

package
v1.19.9 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProcessor

type DataProcessor interface {
	// Process accepts the message from the pipeline and changes it
	// before returning and passing to the downstream.
	// !Important! Try to not copy the message inside a pipeline to avoid redundant
	// memory allocations and make overall performance worth :(
	Process(context context.Context, message *message.Message) (*message.Message, error)
	// EvolveSchema is being called before starting the pipeline
	// to form the schema that will be used as a result of the processing
	// If your processor doesn't add/delete any fields for the message
	// you can simply return the schema you received as an argument
	EvolveSchema(schema *schema.StreamSchemaObj) error
}

type ProcessorDriver

type ProcessorDriver string
const (
	OpenAIProcessor             ProcessorDriver = "openai"
	AIContentModeratorProcessor ProcessorDriver = "ai_content_moderator"
	SQLProcessor                ProcessorDriver = "sql"
	LambdaProcessor             ProcessorDriver = "lambda"
	HttpProcessor               ProcessorDriver = "http"
	SQLEnrichProcessor          ProcessorDriver = "sql_enrich"
	LogProcessor                ProcessorDriver = "log"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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