Documentation
¶
Index ¶
- Constants
- func NewConn() pluginDriver.Driver
- type Conn
- func (This *Conn) AutoCommit() (LastSuccessCommitData *pluginDriver.PluginDataType, ...)
- func (This *Conn) CheckDataSkip(data *pluginDriver.PluginDataType) bool
- func (This *Conn) CheckUri() error
- func (This *Conn) Close() bool
- func (This *Conn) Commit(data *pluginDriver.PluginDataType, retry bool) (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
- func (This *Conn) Connect() bool
- func (This *Conn) Del(data *pluginDriver.PluginDataType, retry bool) (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
- func (This *Conn) GetParam(p interface{}) (*PluginParam, error)
- func (This *Conn) GetUriExample() string
- func (This *Conn) GetVersion() (Version string, err error)
- func (This *Conn) Insert(data *pluginDriver.PluginDataType, retry bool) (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
- func (This *Conn) Open() error
- func (This *Conn) Query(data *pluginDriver.PluginDataType, retry bool) (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
- func (This *Conn) ReConnect() bool
- func (This *Conn) SetOption(uri *string, param map[string]interface{})
- func (This *Conn) SetParam(p interface{}) (interface{}, error)
- func (This *Conn) Skip(SkipData *pluginDriver.PluginDataType) error
- func (This *Conn) TimeOutCommit() (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
- func (This *Conn) Update(data *pluginDriver.PluginDataType, retry bool) (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
- type EsServer
- type PluginParam
- type TableDataStruct
Constants ¶
View Source
const BIFROST_VERION = "v1.6.0"
View Source
const VERSION = "v1.8.1-beta"
Variables ¶
This section is empty.
Functions ¶
func NewConn ¶
func NewConn() pluginDriver.Driver
Types ¶
type Conn ¶
type Conn struct {
pluginDriver.PluginDriverInterface
Uri *string
// contains filtered or unexported fields
}
func (*Conn) AutoCommit ¶
func (This *Conn) AutoCommit() (LastSuccessCommitData *pluginDriver.PluginDataType, ErrData *pluginDriver.PluginDataType, e error)
合并数据,提交到es里
func (*Conn) CheckDataSkip ¶
func (This *Conn) CheckDataSkip(data *pluginDriver.PluginDataType) bool
func (*Conn) Commit ¶
func (This *Conn) Commit(data *pluginDriver.PluginDataType, retry bool) ( *pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
func (*Conn) Del ¶
func (This *Conn) Del(data *pluginDriver.PluginDataType, retry bool) ( *pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
func (*Conn) GetParam ¶
func (This *Conn) GetParam(p interface{}) (*PluginParam, error)
func (*Conn) GetUriExample ¶
func (*Conn) GetVersion ¶
func (*Conn) Insert ¶
func (This *Conn) Insert(data *pluginDriver.PluginDataType, retry bool) ( *pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
func (*Conn) Query ¶
func (This *Conn) Query(data *pluginDriver.PluginDataType, retry bool) ( *pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
func (*Conn) TimeOutCommit ¶
func (This *Conn) TimeOutCommit() ( *pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
func (*Conn) Update ¶
func (This *Conn) Update(data *pluginDriver.PluginDataType, retry bool) ( *pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)
type PluginParam ¶
type PluginParam struct {
EsIndexName string `json: "EsIndexName"`
PrimaryKey string `json: "PrimaryKey"`
Mapping string `json: "Mapping"`
BifrostMustBeSuccess bool `json: "BifrostMustBeSuccess"` // bifrost server 保留,数据是否能丢
BatchSize int `json: "BatchSize"`
Data *TableDataStruct
SkipBinlogData *pluginDriver.PluginDataType // 在执行 skip 的时候 ,进行传入进来的时候需要要过滤的 位点,在每次commit之后,这个数据会被清空
// contains filtered or unexported fields
}
type TableDataStruct ¶
type TableDataStruct struct {
Data []*pluginDriver.PluginDataType
CommitData []*pluginDriver.PluginDataType // commit 提交的数据列表,Data 每 BatchSize 数据量划分为一个最后提交的commit
}
func NewTableData ¶
func NewTableData() *TableDataStruct
Click to show internal directories.
Click to hide internal directories.