Documentation
¶
Index ¶
- Variables
- func HashConfig(config string) string
- func SafeEncodeString(s string) string
- type AsynchronousOutput
- type DDLMsg
- type DMLMsg
- type DMLOp
- type Emitter
- type EmptyRouter
- type IFilter
- type IFilterFactory
- type IMatcher
- type IMatcherFactory
- type IMatcherGroup
- type Input
- type Msg
- type MsgAcker
- type MsgCallbackFunc
- type MsgSubmitter
- type MsgType
- type Output
- type OutputHash
- type Phase
- type PositionCacheCreator
- type Router
- type Scheduler
- type SynchronousOutput
- type TaskReportStage
- type TaskReportStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var PipelineName string
Functions ¶
func HashConfig ¶
func SafeEncodeString ¶ added in v0.9.1
Types ¶
type AsynchronousOutput ¶
type EmptyRouter ¶ added in v0.9.17
type EmptyRouter struct{}
func (EmptyRouter) Exists ¶ added in v0.9.17
func (EmptyRouter) Exists(msg *Msg) bool
type IFilterFactory ¶
type IFilterFactory interface {
NewFilter() IFilter
}
type IMatcherFactory ¶
type IMatcherFactory interface {
NewMatcher() IMatcher
}
type IMatcherGroup ¶
type IMatcherGroup []IMatcher
func (IMatcherGroup) Match ¶
func (matcherGroup IMatcherGroup) Match(msg *Msg) bool
Match returns true if all matcher returns true
type Input ¶
type Input interface {
Start(emitter Emitter, router Router, positionCache position_cache.PositionCacheInterface) error
Close()
Stage() config.InputMode
Done() chan position_repos.Position
SendDeadSignal() error // for test only
Wait()
}
type Msg ¶
type Msg struct {
Phase
Type MsgType
Host string
Database string
Table string
DdlMsg *DDLMsg
DmlMsg *DMLMsg
//
// Timestamp, TimeZone, Oplog will be deprecated.
//
Timestamp time.Time // event generated at source
TimeZone *time.Location
Oplog *gtm.Op
InputStreamKey *string
// OutputDepHashed defines the dependency of this msg.
OutputDepHashes []OutputHash
Done chan struct{}
InputSequence *int64
InputContext interface{}
AfterCommitCallback MsgCallbackFunc
AfterAckCallback MsgCallbackFunc
}
func (*Msg) BeforeWindowMoveForward ¶ added in v0.9.20
func (msg *Msg) BeforeWindowMoveForward()
func (*Msg) ProcessTime ¶ added in v0.9.20
func (*Msg) SequenceNumber ¶ added in v0.9.20
type MsgCallbackFunc ¶ added in v0.9.29
type MsgSubmitter ¶
type OutputHash ¶ added in v0.9.29
OutputHash defines the hash value of the message's output. Name is used just for better debug/test purpose.
type PositionCacheCreator ¶ added in v0.9.17
type PositionCacheCreator interface {
NewPositionCache() (position_cache.PositionCacheInterface, error)
}
type Scheduler ¶
type Scheduler interface {
MsgSubmitter
MsgAcker
Healthy() bool
Start(output Output) error
Close()
}
type SynchronousOutput ¶
type TaskReportStage ¶
type TaskReportStage string
const ( ReportStageFull TaskReportStage = "Full" ReportStageIncremental TaskReportStage = "Incremental" )
type TaskReportStatus ¶
type TaskReportStatus struct {
Name string `json:"name"`
ConfigHash string `json:"configHash"`
Position string `json:"position"`
Stage TaskReportStage `json:"stage"`
Version string `json:"version"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.