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) string
- type ConnFun
- type Driver
- type DriverStructure
- type PluginBinlog
- type PluginDataType
- type ToPluginParam
Constants ¶
View Source
const API_VERSION = "v1.0"
View Source
const RegularxEpression = `\{\$([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) string
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.