Documentation ¶
Index ¶
- type Mongo
- type MyEventHandler
- func (h *MyEventHandler) AckGTIDSet() mysql.GTIDSet
- func (h *MyEventHandler) C() *canal.Canal
- func (h *MyEventHandler) Cancel() context.CancelFunc
- func (h *MyEventHandler) Ctx() context.Context
- func (h *MyEventHandler) OnPosSynced(pos mysql.Position, set mysql.GTIDSet, force bool) error
- func (h *MyEventHandler) OnRow(e *canal.RowsEvent) error
- func (h *MyEventHandler) String() string
- type Mysql
- type StreamObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct { *config.Mongo Client *mongo.Client ChangeStream *mongo.ChangeStream OutputType string Config *config.MongoSrConfig // contains filtered or unexported fields }
func NewMongo ¶
func NewMongo(conf *config.MongoSrConfig) *Mongo
func (*Mongo) Cancel ¶
func (m *Mongo) Cancel() context.CancelFunc
func (*Mongo) StartChangeStream ¶
func (m *Mongo) StartChangeStream()
type MyEventHandler ¶
type MyEventHandler struct { canal.DummyEventHandler StartPosition string // contains filtered or unexported fields }
func NewMysql ¶
func NewMysql(conf *config.MysqlSrConfig) *MyEventHandler
func (*MyEventHandler) AckGTIDSet ¶
func (h *MyEventHandler) AckGTIDSet() mysql.GTIDSet
func (*MyEventHandler) C ¶
func (h *MyEventHandler) C() *canal.Canal
func (*MyEventHandler) Cancel ¶
func (h *MyEventHandler) Cancel() context.CancelFunc
func (*MyEventHandler) Ctx ¶
func (h *MyEventHandler) Ctx() context.Context
func (*MyEventHandler) OnPosSynced ¶
func (*MyEventHandler) String ¶
func (h *MyEventHandler) String() string
Click to show internal directories.
Click to hide internal directories.