processor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyColumn   = "key"
	ValueColumn = "value"
	TTLColumn   = "ttl"
)
View Source
const NullExpr = "NULL"

Variables

This section is empty.

Functions

func NewMySQLImplementation

func NewMySQLImplementation(input *config.Input, target *config.Target, verboseMode bool, procHook hook.ProcessorHook) (*mySQLImplementation, error)

func NewRedisImplementation

func NewRedisImplementation(input *config.Input, target *config.Target, verboseMode bool) (*redisImplementation, error)

Types

type Function

type Function string
const (
	NilValue         Function = "NIL"
	CurrentTimestamp Function = "CURRENT_TIMESTAMP"
)

supported functions

type Implementation

type Implementation interface {
	Process(data [][]string) error
	DryRun(data [][]string) error
	Close()
}

type Processor

type Processor struct {
	ID string
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(cfg *config.Config, id string, procHook hook.ProcessorHook) (processor Processor, err error)

func (*Processor) Close

func (proc *Processor) Close()

func (*Processor) DryRun

func (proc *Processor) DryRun(data [][]string) error

func (*Processor) Process

func (proc *Processor) Process(data [][]string, index int) error

type ProcessorType

type ProcessorType string
const (
	ProcessorTypeMySQL ProcessorType = "mysql"
	ProcessorTypeRedis ProcessorType = "redis"
)

supported types

Jump to

Keyboard shortcuts

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