Documentation
¶
Index ¶
- func ParseArgLikeBash(args []string) []string
- func RegisterMetrics(registry *prometheus.Registry)
- type Mydumper
- func (m *Mydumper) Close()
- func (m *Mydumper) Error() interface{}
- func (m *Mydumper) Init(ctx context.Context) error
- func (m *Mydumper) IsFreshTask(ctx context.Context) (bool, error)
- func (m *Mydumper) Pause()
- func (m *Mydumper) Process(ctx context.Context, pr chan pb.ProcessResult)
- func (m *Mydumper) Resume(ctx context.Context, pr chan pb.ProcessResult)
- func (m *Mydumper) Status() interface{}
- func (m *Mydumper) Type() pb.UnitType
- func (m *Mydumper) Update(cfg *config.SubTaskConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseArgLikeBash ¶
ParseArgLikeBash parses list arguments like bash, which helps us to run executable command via os/exec more likely running from bash
func RegisterMetrics ¶
func RegisterMetrics(registry *prometheus.Registry)
RegisterMetrics registers metrics.
Types ¶
type Mydumper ¶
type Mydumper struct {
// contains filtered or unexported fields
}
Mydumper is a simple wrapper for mydumper binary
func NewMydumper ¶
func NewMydumper(cfg *config.SubTaskConfig) *Mydumper
NewMydumper creates a new Mydumper
func (*Mydumper) IsFreshTask ¶
IsFreshTask implements Unit.IsFreshTask
func (*Mydumper) Process ¶
func (m *Mydumper) Process(ctx context.Context, pr chan pb.ProcessResult)
Process implements Unit.Process
Click to show internal directories.
Click to hide internal directories.