Documentation ¶
Index ¶
- Constants
- func InitTableState(state *TableState, table *core.Table, conn *sql.DB) (err error)
- type MysqlScanInput
- func (in *MysqlScanInput) Ack(msg *core.Message, err error)
- func (in *MysqlScanInput) Configure(config core.StringMap) (err error)
- func (in *MysqlScanInput) GetState() ([]byte, bool)
- func (in *MysqlScanInput) SetState(state []byte) (err error)
- func (in *MysqlScanInput) Start() (err error)
- func (in *MysqlScanInput) Stop()
- type MysqlScanInputConfig
- type TableScanner
- type TableState
Constants ¶
View Source
const ( DefaultBatchSize = 1000 DefaultConcurrency = 8 )
Variables ¶
This section is empty.
Functions ¶
func InitTableState ¶
Types ¶
type MysqlScanInput ¶
type MysqlScanInput struct { *core.BaseInput Config *MysqlScanInputConfig // contains filtered or unexported fields }
func NewMysqlScanInput ¶
func NewMysqlScanInput() *MysqlScanInput
func (*MysqlScanInput) Configure ¶
func (in *MysqlScanInput) Configure(config core.StringMap) (err error)
func (*MysqlScanInput) GetState ¶
func (in *MysqlScanInput) GetState() ([]byte, bool)
func (*MysqlScanInput) SetState ¶
func (in *MysqlScanInput) SetState(state []byte) (err error)
func (*MysqlScanInput) Start ¶
func (in *MysqlScanInput) Start() (err error)
func (*MysqlScanInput) Stop ¶
func (in *MysqlScanInput) Stop()
type MysqlScanInputConfig ¶
type TableScanner ¶
type TableScanner struct {
// contains filtered or unexported fields
}
func NewTableScanner ¶
func NewTableScanner(id int, input *MysqlScanInput, tables chan *core.Table) *TableScanner
Click to show internal directories.
Click to hide internal directories.