Documentation ¶
Index ¶
- func RegisterMetrics(registry *prometheus.Registry)
- type Dumpling
- func (m *Dumpling) Close()
- func (m *Dumpling) Init(ctx context.Context) error
- func (m *Dumpling) IsFreshTask(ctx context.Context) (bool, error)
- func (m *Dumpling) Kill()
- func (m *Dumpling) Pause()
- func (m *Dumpling) Process(ctx context.Context, pr chan pb.ProcessResult)
- func (m *Dumpling) Resume(ctx context.Context, pr chan pb.ProcessResult)
- func (m *Dumpling) Status(_ *binlog.SourceStatus) interface{}
- func (m *Dumpling) Type() pb.UnitType
- func (m *Dumpling) Update(context.Context, *config.SubTaskConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics(registry *prometheus.Registry)
RegisterMetrics registers metrics and saves the given registry for later use.
Types ¶
type Dumpling ¶
type Dumpling struct {
// contains filtered or unexported fields
}
Dumpling dumps full data from a MySQL-compatible database.
func NewDumpling ¶
func NewDumpling(cfg *config.SubTaskConfig) *Dumpling
NewDumpling creates a new Dumpling.
func (*Dumpling) IsFreshTask ¶
IsFreshTask implements Unit.IsFreshTask.
func (*Dumpling) Process ¶
func (m *Dumpling) Process(ctx context.Context, pr chan pb.ProcessResult)
Process implements Unit.Process.
func (*Dumpling) Resume ¶
func (m *Dumpling) Resume(ctx context.Context, pr chan pb.ProcessResult)
Resume implements Unit.Resume.
func (*Dumpling) Status ¶
func (m *Dumpling) Status(_ *binlog.SourceStatus) interface{}
Status implements Unit.Status.
Click to show internal directories.
Click to hide internal directories.