input

package
v0.0.0-...-4440b72 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const MongoName = "mongo"
View Source
const MysqlName = "mysql"

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoInputPlugin

type MongoInputPlugin struct {
	*config.MongoConfig
	Client       *mongo.Client
	ChangeStream *mongo.ChangeStream
	// contains filtered or unexported fields
}

func (*MongoInputPlugin) AfterMsgCommit

func (mi *MongoInputPlugin) AfterMsgCommit(msg *msg.Msg) error

func (*MongoInputPlugin) Close

func (mi *MongoInputPlugin) Close()

func (*MongoInputPlugin) Configure

func (mi *MongoInputPlugin) Configure(pipelineName string, configInput map[string]interface{}) error

func (*MongoInputPlugin) GetDelay

func (mi *MongoInputPlugin) GetDelay() uint32

func (*MongoInputPlugin) NewInput

func (mi *MongoInputPlugin) NewInput(inputConfig interface{}, ruleRegex []string, inSchema core.Schema)

func (*MongoInputPlugin) RemoveIncludeTableRegex

func (mi *MongoInputPlugin) RemoveIncludeTableRegex(config map[string]interface{}) (*regexp.Regexp, error)

func (*MongoInputPlugin) SetIncludeTableRegex

func (mi *MongoInputPlugin) SetIncludeTableRegex(config map[string]interface{}) (*regexp.Regexp, error)

func (*MongoInputPlugin) StartInput

func (mi *MongoInputPlugin) StartInput(pos core.Position, syncChan *channel.SyncChannel) core.Position

func (*MongoInputPlugin) StartMetrics

func (mi *MongoInputPlugin) StartMetrics()

type MysqlInputPlugin

type MysqlInputPlugin struct {
	canal.DummyEventHandler
	*config.MysqlConfig
	// contains filtered or unexported fields
}

func (*MysqlInputPlugin) AfterMsgCommit

func (mi *MysqlInputPlugin) AfterMsgCommit(msg *msg.Msg) error

func (*MysqlInputPlugin) Close

func (mi *MysqlInputPlugin) Close()

func (*MysqlInputPlugin) Configure

func (mi *MysqlInputPlugin) Configure(pipelineName string, configInput map[string]interface{}) error

func (*MysqlInputPlugin) NewInput

func (mi *MysqlInputPlugin) NewInput(inputConfig interface{}, ruleRegex []string, inSchema core.Schema)

func (*MysqlInputPlugin) OnDDL

func (mi *MysqlInputPlugin) OnDDL(nextPos mysql.Position, queryEvent *replication.QueryEvent) error

func (*MysqlInputPlugin) OnPosSynced

func (mi *MysqlInputPlugin) OnPosSynced(pos mysql.Position, set mysql.GTIDSet, force bool) error

func (*MysqlInputPlugin) OnRow

func (mi *MysqlInputPlugin) OnRow(e *canal.RowsEvent) error

func (*MysqlInputPlugin) OnTableChanged

func (mi *MysqlInputPlugin) OnTableChanged(schema string, table string) error

func (*MysqlInputPlugin) RemoveIncludeTableRegex

func (mi *MysqlInputPlugin) RemoveIncludeTableRegex(config map[string]interface{}) (*regexp.Regexp, error)

func (*MysqlInputPlugin) SetIncludeTableRegex

func (mi *MysqlInputPlugin) SetIncludeTableRegex(config map[string]interface{}) (*regexp.Regexp, error)

func (*MysqlInputPlugin) StartInput

func (mi *MysqlInputPlugin) StartInput(pos core.Position, syncChan *channel.SyncChannel) core.Position

func (*MysqlInputPlugin) StartMetrics

func (mi *MysqlInputPlugin) StartMetrics()

type NS

type NS struct {
	Database   string `bson:"db"`
	Collection string `bson:"coll"`
}

Jump to

Keyboard shortcuts

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