dumpling

package
v0.0.0-...-7f57e1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

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) Close

func (m *Dumpling) Close()

Close implements Unit.Close.

func (*Dumpling) Init

func (m *Dumpling) Init(ctx context.Context) error

Init implements Unit.Init.

func (*Dumpling) IsFreshTask

func (m *Dumpling) IsFreshTask(ctx context.Context) (bool, error)

IsFreshTask implements Unit.IsFreshTask.

func (*Dumpling) Kill

func (m *Dumpling) Kill()

Kill implements Unit.Kill.

func (*Dumpling) Pause

func (m *Dumpling) Pause()

Pause implements Unit.Pause.

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.

func (*Dumpling) Type

func (m *Dumpling) Type() pb.UnitType

Type implements Unit.Type.

func (*Dumpling) Update

Update implements Unit.Update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL