Documentation ¶
Index ¶
- Variables
- func Delete(cLog *ChangeLog)
- func ErrorLog(err error) error
- func ErrorPanic(err error)
- func GetDestConfig() *mysql.Config
- func GetSourceConfig() *mysql.Config
- func InitDestDb() *sql.DB
- func InitRaplication()
- func InitSync()
- func Insert(cLog *ChangeLog)
- func SchemaAltered(b []byte)
- func Update(cLog *ChangeLog)
- type AssociateArray
- type ChangeLog
- type Column
- type IndexedArray
- type MyEvent
- type MyEventHandler
- type SensitiveTables
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var DestConfig *mysql.Config
View Source
var DestDb *sql.DB
View Source
var SourceConfig *mysql.Config
Functions ¶
func GetDestConfig ¶
GetSourceConfig - gets config variables from environment variables or die
func GetSourceConfig ¶
GetSourceConfig - gets config variables from environment variables or die
func InitDestDb ¶
func InitRaplication ¶
func InitRaplication()
func SchemaAltered ¶
func SchemaAltered(b []byte)
Types ¶
type ChangeLog ¶
type ChangeLog struct { BinlogTimestamp uint32 Keys AssociateArray Timestamp int64 TableName string ChangeType string Columns AssociateArray }
ChangeLog -
type MyEventHandler ¶
type MyEventHandler struct {
c.DummyEventHandler
}
MyEventHandler struct
func (*MyEventHandler) OnDDL ¶
func (h *MyEventHandler) OnDDL(nextPos m.Position, queryEvent *replication.QueryEvent) error
OnDDL will handle schema changes
type SensitiveTables ¶
var Tables SensitiveTables
func GetTablesToFilter ¶
func GetTablesToFilter(confDir string) SensitiveTables
Click to show internal directories.
Click to hide internal directories.