Documentation ¶
Index ¶
Constants ¶
View Source
const ( MysqlSource = "mysql" //MssqlSource = "sqlserver" CkSource = "clickhouse" )
View Source
const ( Success = "数据导入成功" Error = "数据导入失败" Running = "数据正在导入中..." Cancel = "数据导入任务取消" )
Variables ¶
View Source
var DataSourceMap = map[string]func(data request.DataxInfoTestLinkReq) Datasource{ MysqlSource: NewMysql, CkSource: NewClickhouse, }
Functions ¶
This section is empty.
Types ¶
type Clickhouse ¶
type Clickhouse struct {
request.DataxInfoTestLinkReq
}
func (*Clickhouse) GetTableColumns ¶
func (this *Clickhouse) GetTableColumns(tableName string) (interface{}, error)
func (*Clickhouse) GetTables ¶
func (this *Clickhouse) GetTables() ([]string, error)
func (*Clickhouse) Ping ¶
func (this *Clickhouse) Ping() error
func (*Clickhouse) Transfer ¶
func (this *Clickhouse) Transfer(id int, transferReq *request.TransferReq) (err error)
type Datasource ¶
type Datasource interface { Ping() error GetTables() ([]string, error) GetTableColumns(tableName string) (interface{}, error) Transfer(id int, transferReq *request.TransferReq) (err error) }
func NewClickhouse ¶
func NewClickhouse(data request.DataxInfoTestLinkReq) Datasource
func NewDataSource ¶
func NewDataSource(data request.DataxInfoTestLinkReq) (i Datasource, err error)
func NewMysql ¶
func NewMysql(data request.DataxInfoTestLinkReq) Datasource
type RealTimeWarehousingV6 ¶
type RealTimeWarehousingV6 struct {
// contains filtered or unexported fields
}
func (*RealTimeWarehousingV6) Add ¶
func (this *RealTimeWarehousingV6) Add(data *elasticV6.BulkIndexRequest) (err error)
func (*RealTimeWarehousingV6) Flush ¶
func (this *RealTimeWarehousingV6) Flush() (err error)
func (*RealTimeWarehousingV6) FlushAll ¶
func (this *RealTimeWarehousingV6) FlushAll() error
func (*RealTimeWarehousingV6) RegularFlushing ¶
func (this *RealTimeWarehousingV6) RegularFlushing()
type RealTimeWarehousingV7 ¶
type RealTimeWarehousingV7 struct {
// contains filtered or unexported fields
}
func (*RealTimeWarehousingV7) Add ¶
func (this *RealTimeWarehousingV7) Add(data *elasticV7.BulkIndexRequest) (err error)
func (*RealTimeWarehousingV7) Flush ¶
func (this *RealTimeWarehousingV7) Flush() (err error)
func (*RealTimeWarehousingV7) FlushAll ¶
func (this *RealTimeWarehousingV7) FlushAll() error
func (*RealTimeWarehousingV7) RegularFlushing ¶
func (this *RealTimeWarehousingV7) RegularFlushing()
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
var TS *Task
func GetTaskInstance ¶
func GetTaskInstance() *Task
func (*Task) CancelById ¶
func (*Task) SetCancelFunc ¶
func (this *Task) SetCancelFunc(id int, cancel context.CancelFunc)
Click to show internal directories.
Click to hide internal directories.