Documentation
¶
Index ¶
- Constants
- func CheckUri(name string, uri string) error
- func Drivers() map[string]DriverStructure
- func GetApiVersion() string
- func Register(name string, driver Driver, version string, bifrost_version string)
- func TransfeResult(val string, data *PluginDataType, rowIndex int) interface{}
- type ConnFun
- type Driver
- type DriverStructure
- type PluginBinlog
- type PluginDataType
- type ToPluginParam
Constants ¶
View Source
const API_VERSION = "v1.3"
View Source
const RegularxEpression = `\{\$([a-zA-Z0-9\-\_\[\]\'\"]+)\}`
View Source
const RegularxEpressionKey = `([a-zA-Z0-9\-\_]+)`
Variables ¶
This section is empty.
Functions ¶
func Drivers ¶
func Drivers() map[string]DriverStructure
func GetApiVersion ¶
func GetApiVersion() string
func TransfeResult ¶
func TransfeResult(val string, data *PluginDataType, rowIndex int) interface{}
Types ¶
type ConnFun ¶
type ConnFun interface {
GetConnStatus() string
SetConnStatus(status string)
Connect() bool
ReConnect() bool
HeartCheck()
Close() bool
Insert(data *PluginDataType) (*PluginBinlog, error) //binlog位点,处理了多少条数据,错误信息
Update(data *PluginDataType) (*PluginBinlog, error)
Del(data *PluginDataType) (*PluginBinlog, error)
Query(data *PluginDataType) (*PluginBinlog, error)
SetParam(p interface{}) (interface{}, error)
Commit() (*PluginBinlog, error)
}
type DriverStructure ¶
type PluginBinlog ¶
type PluginDataType ¶
type ToPluginParam ¶
type ToPluginParam struct {
FromPluginBinlogChan chan PluginBinlog
}
Click to show internal directories.
Click to hide internal directories.