Documentation ¶
Index ¶
- func IndexOf(data []string, element string) int
- type DBDataTypeMapping
- type ESQueueItem
- type Queue
- type SyncMySQLToElasticSearch
- func (this *SyncMySQLToElasticSearch) GetObjectValues(object interface{}) map[string]interface{}
- func (this *SyncMySQLToElasticSearch) Init(addr, user, password, dbName, esAddr, esUser, esPassword string, ...) error
- func (this *SyncMySQLToElasticSearch) OnPosSynced(pos mysql.Position, _ mysql.GTIDSet, force bool) error
- func (this *SyncMySQLToElasticSearch) OnRow(rowsEvent *canal.RowsEvent) error
- func (this *SyncMySQLToElasticSearch) RegisterTable(tableName string, tableStruct interface{}) error
- func (this *SyncMySQLToElasticSearch) SetOnPosSynced(onPostSynced func(name string, pos uint32, force bool))
- func (this *SyncMySQLToElasticSearch) Sync() error
- func (this *SyncMySQLToElasticSearch) SyncFrom(binlogFile string, binlogPosition uint32) error
- func (this *SyncMySQLToElasticSearch) Syncer()
- type SyncMySQLToElasticSearchOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBDataTypeMapping ¶
type ESQueueItem ¶
type SyncMySQLToElasticSearch ¶
type SyncMySQLToElasticSearch struct { canal.DummyEventHandler // contains filtered or unexported fields }
func NewSyncMySQLToElasticSearch ¶
func NewSyncMySQLToElasticSearch(addr, user, password, dbName, esAddr, esUser, esPassword string, option ...SyncMySQLToElasticSearchOption) (*SyncMySQLToElasticSearch, error)
func (*SyncMySQLToElasticSearch) GetObjectValues ¶ added in v1.0.10
func (this *SyncMySQLToElasticSearch) GetObjectValues(object interface{}) map[string]interface{}
func (*SyncMySQLToElasticSearch) Init ¶
func (this *SyncMySQLToElasticSearch) Init(addr, user, password, dbName, esAddr, esUser, esPassword string, option SyncMySQLToElasticSearchOption) error
func (*SyncMySQLToElasticSearch) OnPosSynced ¶
func (*SyncMySQLToElasticSearch) OnRow ¶
func (this *SyncMySQLToElasticSearch) OnRow(rowsEvent *canal.RowsEvent) error
func (*SyncMySQLToElasticSearch) RegisterTable ¶
func (this *SyncMySQLToElasticSearch) RegisterTable(tableName string, tableStruct interface{}) error
func (*SyncMySQLToElasticSearch) SetOnPosSynced ¶ added in v1.0.1
func (this *SyncMySQLToElasticSearch) SetOnPosSynced(onPostSynced func(name string, pos uint32, force bool))
func (*SyncMySQLToElasticSearch) Sync ¶
func (this *SyncMySQLToElasticSearch) Sync() error
func (*SyncMySQLToElasticSearch) SyncFrom ¶
func (this *SyncMySQLToElasticSearch) SyncFrom(binlogFile string, binlogPosition uint32) error
func (*SyncMySQLToElasticSearch) Syncer ¶
func (this *SyncMySQLToElasticSearch) Syncer()
Click to show internal directories.
Click to hide internal directories.