Documentation
¶
Index ¶
- Variables
- func CheckSyncConfig(ctx context.Context, cfgs []*config.SubTaskConfig) error
- type Checker
- func (c *Checker) Close()
- func (c *Checker) Error() interface{}
- func (c *Checker) Init(ctx context.Context) (err 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 ¶
View Source
var ( // ErrorMsgHeader used as the header of the error message when checking config failed. ErrorMsgHeader = "fail to check synchronization configuration with type" // CheckSyncConfigFunc holds the CheckSyncConfig function CheckSyncConfigFunc func(ctx context.Context, cfgs []*config.SubTaskConfig) error )
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, checkingItems map[string]string) *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.