core

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanalOption

type CanalOption struct {
	Host        string
	Port        int
	Username    string
	Password    string
	Destination string
	SoTimOut    int32
	IdleTimeOut int32
	Filter      string
	BatchSize   int32
}

type ReplicationDMLHandler

type ReplicationDMLHandler func(msg ReplicationMessage)

type ReplicationMessage

type ReplicationMessage struct {
	LogfileName   string
	LogfileOffset int64
	SchemaName    string
	TableName     string
	EventType     entry.EventType
	Body          map[string]interface{}
	Columns       []string // the column about updated
}

type ReplicationSyncer

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

func NewReplicationSyncer

func NewReplicationSyncer(canalOption CanalOption, dmlHandler ReplicationDMLHandler) *ReplicationSyncer

func (*ReplicationSyncer) Start

func (t *ReplicationSyncer) Start() error

Jump to

Keyboard shortcuts

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