filter

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ConvertDmlColumnFilterName = "convert-dml-column"
View Source
const ConvertSnakeCaseColumnFilterName = "convert-snakecase-column"
View Source
const DeleteDMLColumnFilterName = "delete-dml-column"
View Source
const RenameDmlColumnFilterName = "rename-dml-column"

Variables

This section is empty.

Functions

func FindColumn added in v0.3.0

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

Types

type ConvertDmlColumnFilter

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

func (*ConvertDmlColumnFilter) Filter

func (cdcf *ConvertDmlColumnFilter) Filter(msg *msg.Msg) bool

func (*ConvertDmlColumnFilter) NewFilter added in v0.3.0

func (cdcf *ConvertDmlColumnFilter) NewFilter(config map[string]interface{}) error

type ConvertSnakeCaseColumnFilter added in v0.3.0

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

func (*ConvertSnakeCaseColumnFilter) Filter added in v0.3.0

func (cdcf *ConvertSnakeCaseColumnFilter) Filter(m *msg.Msg) bool

func (*ConvertSnakeCaseColumnFilter) NewFilter added in v0.3.0

func (cdcf *ConvertSnakeCaseColumnFilter) NewFilter(config map[string]interface{}) error

type DeleteDmlColumnFilter

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

func (*DeleteDmlColumnFilter) Filter

func (ddcf *DeleteDmlColumnFilter) Filter(msg *msg.Msg) bool

func (*DeleteDmlColumnFilter) NewFilter added in v0.3.0

func (ddcf *DeleteDmlColumnFilter) NewFilter(config map[string]interface{}) error

type Filter added in v0.3.0

type Filter interface {
	NewFilter(config map[string]interface{}) error
	Filter(msg *msg.Msg) bool
}

type MatcherFilter added in v0.3.0

type MatcherFilter []Filter

func NewMatcherFilter added in v0.3.0

func NewMatcherFilter(filterConfigs []*config.FilterConfig) MatcherFilter

func (MatcherFilter) IterateFilter added in v0.3.0

func (matcher MatcherFilter) IterateFilter(msg *msg.Msg) bool

func (MatcherFilter) StartFilter added in v0.3.0

func (matcher MatcherFilter) StartFilter(syncChan *channel.SyncChannel, outputChan *channel.OutputChannel, inSchema schema.Schema)

type RenameDmlColumnFilter added in v0.3.0

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

func (*RenameDmlColumnFilter) Filter added in v0.3.0

func (rdcf *RenameDmlColumnFilter) Filter(msg *msg.Msg) bool

func (*RenameDmlColumnFilter) NewFilter added in v0.3.0

func (rdcf *RenameDmlColumnFilter) NewFilter(config map[string]interface{}) error

Jump to

Keyboard shortcuts

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