helper

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: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinlogPositionValueDecoder added in v0.9.19

func BinlogPositionValueDecoder(s string) (interface{}, error)

func BinlogPositionValueEncoder added in v0.9.19

func BinlogPositionValueEncoder(v interface{}) (string, error)

func GetInputFromPlugin added in v0.9.25

func GetInputFromPlugin(pluginName string, pipelineName string, data map[string]interface{}) (core.Input, error)

func GetProbCfg added in v0.9.17

func GetProbCfg(sourceProbeCfg *SourceProbeCfg, sourceDBCfg *config.DBConfig) (*config.DBConfig, string)

func NewTwoStageInputPlugin

func NewTwoStageInputPlugin(full, incremental core.Input) (core.Input, error)

func SerializeBinlogPositionValue added in v0.9.17

func SerializeBinlogPositionValue(position BinlogPositionsValue) (string, error)

Types

type BinlogPositionsValue added in v0.9.17

type BinlogPositionsValue struct {
	CurrentPosition *config.MySQLBinlogPosition `json:"current_position"`
	StartPosition   *config.MySQLBinlogPosition `json:"start_position"`
}

func DeserializeBinlogPositionValue added in v0.9.17

func DeserializeBinlogPositionValue(value string) (BinlogPositionsValue, error)

type SourceProbeCfg added in v0.9.17

type SourceProbeCfg struct {
	SourceMySQL *config.DBConfig `mapstructure:"mysql"json:"mysql"`
	Annotation  string           `mapstructure:"annotation"json:"annotation"`
}

type TwoStageInputPlugin

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

func (*TwoStageInputPlugin) Close

func (i *TwoStageInputPlugin) Close()

func (*TwoStageInputPlugin) Done

func (*TwoStageInputPlugin) NewPositionCache added in v0.9.17

func (*TwoStageInputPlugin) SendDeadSignal

func (i *TwoStageInputPlugin) SendDeadSignal() error

func (*TwoStageInputPlugin) Stage

func (*TwoStageInputPlugin) Start

func (i *TwoStageInputPlugin) Start(emitter core.Emitter, router core.Router, positionCache position_cache.PositionCacheInterface) error

func (*TwoStageInputPlugin) Wait

func (i *TwoStageInputPlugin) Wait()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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