helper

package
v0.9.34 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 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 *utils.DBConfig) (*utils.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 *utils.MySQLBinlogPosition `json:"current_position"`
	StartPosition   *utils.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 *utils.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_store.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