Documentation
¶
Index ¶
- type BaseHandler
- func (h *BaseHandler) OnDDL(header *replication.EventHeader, _ mysql.Position, _ *replication.QueryEvent) error
- func (h *BaseHandler) OnGTID(header *replication.EventHeader, _ mysql.GTIDSet) error
- func (h *BaseHandler) OnPosSynced(header *replication.EventHeader, pos mysql.Position, _ mysql.GTIDSet, _ bool) error
- func (h *BaseHandler) OnRotate(header *replication.EventHeader, rotateEvent *replication.RotateEvent) error
- func (h *BaseHandler) OnTableChanged(header *replication.EventHeader, _ string, _ string) error
- func (h *BaseHandler) OnXID(header *replication.EventHeader, _ mysql.Position) error
- type DiscardLogHandler
- type FlashbackHandler
- type ToSqlHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseHandler ¶
type BaseHandler struct { canal.DummyEventHandler Config *config.BinlogConfig Done chan interface{} Out io.Writer // contains filtered or unexported fields }
func (*BaseHandler) OnDDL ¶
func (h *BaseHandler) OnDDL(header *replication.EventHeader, _ mysql.Position, _ *replication.QueryEvent) error
func (*BaseHandler) OnGTID ¶
func (h *BaseHandler) OnGTID(header *replication.EventHeader, _ mysql.GTIDSet) error
func (*BaseHandler) OnPosSynced ¶
func (h *BaseHandler) OnPosSynced(header *replication.EventHeader, pos mysql.Position, _ mysql.GTIDSet, _ bool) error
func (*BaseHandler) OnRotate ¶
func (h *BaseHandler) OnRotate(header *replication.EventHeader, rotateEvent *replication.RotateEvent) error
func (*BaseHandler) OnTableChanged ¶
func (h *BaseHandler) OnTableChanged(header *replication.EventHeader, _ string, _ string) error
func (*BaseHandler) OnXID ¶
func (h *BaseHandler) OnXID(header *replication.EventHeader, _ mysql.Position) error
type DiscardLogHandler ¶
type DiscardLogHandler struct { }
func (*DiscardLogHandler) Close ¶
func (h *DiscardLogHandler) Close() error
type ToSqlHandler ¶
type ToSqlHandler struct {
BaseHandler
}
ToSqlHandler 生成sql
func (*ToSqlHandler) OnDDL ¶
func (h *ToSqlHandler) OnDDL(header *replication.EventHeader, _ mysql.Position, queryEvent *replication.QueryEvent) error
Click to show internal directories.
Click to hide internal directories.