Documentation
¶
Index ¶
- func CheckSyncConfig(ctx context.Context, cfgs []*config.SubTaskConfig) error
- type Checker
- func (c *Checker) Close()
- func (c *Checker) Error() interface{}
- func (c *Checker) Init() error
- func (c *Checker) IsFreshTask() (bool, error)
- func (c *Checker) Pause()
- func (c *Checker) Process(ctx context.Context, pr chan pb.ProcessResult)
- func (c *Checker) Resume(ctx context.Context, pr chan pb.ProcessResult)
- func (c *Checker) Status() interface{}
- func (c *Checker) Type() pb.UnitType
- func (c *Checker) Update(cfg *config.SubTaskConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSyncConfig ¶
func CheckSyncConfig(ctx context.Context, cfgs []*config.SubTaskConfig) error
CheckSyncConfig checks synchronization configuration
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker performs pre-check of data synchronization
func NewChecker ¶
func NewChecker(cfgs []*config.SubTaskConfig) *Checker
NewChecker returns a checker
func (*Checker) IsFreshTask ¶
IsFreshTask implements Unit.IsFreshTask
func (*Checker) Process ¶
func (c *Checker) Process(ctx context.Context, pr chan pb.ProcessResult)
Process implements Unit interface
Click to show internal directories.
Click to hide internal directories.