Documentation
¶
Index ¶
- type CheckPoint
- type ColumnResolverFunc
- type Rdb
- func (m *Rdb) CheckPointToString() string
- func (m *Rdb) Collect(collector pipeline.Collector, ...) error
- func (m *Rdb) Init(context pipeline.Context, rdbFunc RdbFunc) (int, error)
- func (m *Rdb) InitCheckPointFromString(val string)
- func (m *Rdb) ParseRows(rows *sql.Rows, columnResolverFuncMap map[string]ColumnResolverFunc, ...) int
- func (m *Rdb) SaveCheckPoint(collector pipeline.Collector)
- func (m *Rdb) Start(collector pipeline.Collector, connStr string, rdbFunc RdbFunc, ...) error
- func (m *Rdb) Stop() error
- type RdbFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckPoint ¶
type ColumnResolverFunc ¶
type Rdb ¶
type Rdb struct {
ColumnsHash map[string]string
ConnectionRetryTime int
ConnectionRetryWaitMs int
Driver string
Address string
Port int
DataBase string
User string
Password string
PasswordPath string
DialTimeOutMs int
ReadTimeOutMs int
Limit bool
PageSize int
MaxSyncSize int
StateMent string
StateMentPath string
CheckPoint bool
CheckPointColumn string
// int or time
CheckPointColumnType string
CheckPointStart string
CheckPointSavePerPage bool
IntervalMs int
Shutdown chan struct{}
Context pipeline.Context
// contains filtered or unexported fields
}
func (*Rdb) CheckPointToString ¶
func (*Rdb) InitCheckPointFromString ¶
func (*Rdb) SaveCheckPoint ¶
Click to show internal directories.
Click to hide internal directories.