matchers

package
v0.9.71 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const DDLRegexMatcherName = "match-ddl-regex"
View Source
const SchemaMatcherName = "match-schema"
View Source
const TableMatcherName = "match-table"
View Source
const TableRegexMatcherName = "match-table-regex"

Variables

This section is empty.

Functions

func NewMatchers

func NewMatchers(configData map[string]interface{}) (core.IMatcherGroup, error)

Types

type DDLRegexMatcher added in v0.9.15

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

func (*DDLRegexMatcher) Configure added in v0.9.15

func (m *DDLRegexMatcher) Configure(data interface{}) error

func (*DDLRegexMatcher) Match added in v0.9.15

func (m *DDLRegexMatcher) Match(msg *core.Msg) bool

type SchemaMatcher

type SchemaMatcher struct {
	SchemaGlob string
}

func (*SchemaMatcher) Configure

func (m *SchemaMatcher) Configure(data interface{}) error

func (*SchemaMatcher) Match

func (m *SchemaMatcher) Match(msg *core.Msg) bool

type TableMatcher

type TableMatcher struct {
	TableGlob []string
}

func (*TableMatcher) Configure

func (m *TableMatcher) Configure(data interface{}) error

func (*TableMatcher) Match

func (m *TableMatcher) Match(msg *core.Msg) bool

type TableRegexMatcher added in v0.9.66

type TableRegexMatcher struct {
	Regex []*regexp.Regexp
}

func (*TableRegexMatcher) Configure added in v0.9.66

func (m *TableRegexMatcher) Configure(data interface{}) error

func (*TableRegexMatcher) Match added in v0.9.66

func (m *TableRegexMatcher) Match(msg *core.Msg) bool

type TableRegexMatcherFactoryType added in v0.9.66

type TableRegexMatcherFactoryType struct {
}

func (*TableRegexMatcherFactoryType) Configure added in v0.9.66

func (f *TableRegexMatcherFactoryType) Configure(_ string, _ map[string]interface{}) error

func (*TableRegexMatcherFactoryType) NewMatcher added in v0.9.66

func (f *TableRegexMatcherFactoryType) NewMatcher() core.IMatcher

Jump to

Keyboard shortcuts

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