Documentation ¶
Index ¶
- Constants
- Variables
- func FindPositionFileNotCreate(filePath string, initPositionData string)
- func GetPositionFilePath(conf *config.BaseConfig) string
- type MongoPosition
- func (pos *MongoPosition) Close()
- func (pos *MongoPosition) Configure(pipelineName string, configInput map[string]interface{}) error
- func (pos *MongoPosition) LoadPosition(config *config.BaseConfig) string
- func (pos *MongoPosition) ModifyPosition(v string) error
- func (pos *MongoPosition) SavePosition() error
- func (pos *MongoPosition) StartPosition()
- type MysqlBasePosition
- type MysqlPosition
- func (pos *MysqlPosition) Close()
- func (pos *MysqlPosition) Configure(pipelineName string, configInput map[string]interface{}) error
- func (pos *MysqlPosition) LoadPosition(conf *config.BaseConfig) string
- func (pos *MysqlPosition) ModifyPosition(v string) error
- func (pos *MysqlPosition) SavePosition() error
- func (pos *MysqlPosition) StartPosition()
Constants ¶
View Source
const MongoPosName = "mongo"
View Source
const MysqlPosName = "mysql"
Variables ¶
View Source
var DbName = "_go_mysql_sr"
Functions ¶
func FindPositionFileNotCreate ¶ added in v0.3.0
func GetPositionFilePath ¶ added in v0.3.0
func GetPositionFilePath(conf *config.BaseConfig) string
Types ¶
type MongoPosition ¶
type MongoPosition struct { sync.RWMutex FilePath string InitStartPosition time.Time // contains filtered or unexported fields }
func (*MongoPosition) Close ¶ added in v0.3.0
func (pos *MongoPosition) Close()
func (*MongoPosition) Configure ¶ added in v0.5.0
func (pos *MongoPosition) Configure(pipelineName string, configInput map[string]interface{}) error
func (*MongoPosition) LoadPosition ¶ added in v0.3.0
func (pos *MongoPosition) LoadPosition(config *config.BaseConfig) string
func (*MongoPosition) ModifyPosition ¶ added in v0.3.0
func (pos *MongoPosition) ModifyPosition(v string) error
func (*MongoPosition) SavePosition ¶ added in v0.3.0
func (pos *MongoPosition) SavePosition() error
func (*MongoPosition) StartPosition ¶ added in v0.3.0
func (pos *MongoPosition) StartPosition()
type MysqlBasePosition ¶ added in v0.3.2
type MysqlPosition ¶ added in v0.3.0
type MysqlPosition struct { sync.RWMutex *MysqlBasePosition FilePath string Name string // contains filtered or unexported fields }
func (*MysqlPosition) Close ¶ added in v0.3.0
func (pos *MysqlPosition) Close()
func (*MysqlPosition) Configure ¶ added in v0.5.0
func (pos *MysqlPosition) Configure(pipelineName string, configInput map[string]interface{}) error
func (*MysqlPosition) LoadPosition ¶ added in v0.3.0
func (pos *MysqlPosition) LoadPosition(conf *config.BaseConfig) string
func (*MysqlPosition) ModifyPosition ¶ added in v0.3.0
func (pos *MysqlPosition) ModifyPosition(v string) error
func (*MysqlPosition) SavePosition ¶ added in v0.3.0
func (pos *MysqlPosition) SavePosition() error
func (*MysqlPosition) StartPosition ¶ added in v0.3.0
func (pos *MysqlPosition) StartPosition()
Click to show internal directories.
Click to hide internal directories.