Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompareChan ¶
type CompareChan struct {
// contains filtered or unexported fields
}
type CompareItem ¶
type CompareItem struct {
Doc interface{} `json:"doc,omitempty"`
Key string `json:"key,omitempty"`
Hash string `json:"hash,omitempty"`
}
func NewCompareItem ¶
func NewCompareItem(key, hash string) CompareItem
func (*CompareItem) CompareHash ¶
func (a *CompareItem) CompareHash(b *CompareItem) int
func (*CompareItem) CompareKey ¶
func (a *CompareItem) CompareKey(b *CompareItem) int
type Config ¶
type Config struct {
PartitionSize int `config:"partition_size"`
TextReportEnabled bool `config:"text_report"`
KeepSourceInResult bool `config:"keep_source"`
BufferSize int `config:"buffer_size"`
Queue *OutputQueueConfig `config:"output_queue"`
CleanOldFiles bool `config:"clean_old_files"`
SourceInputQueue string `config:"source_queue"`
TargetInputQueue string `config:"target_queue"`
// DEPRECATED, use `output_queue` instead
DiffQueue string `config:"diff_queue"`
}
func (*Config) GetLeftQueue ¶
func (*Config) GetRightQueue ¶
func (*Config) GetSortedLeftQueue ¶
func (*Config) GetSortedRightQueue ¶
type DiffResult ¶
type DiffResult struct {
DiffType string `json:"type,omitempty"`
Key string `json:"key,omitempty"`
Source *CompareItem `json:"source,omitempty"`
Target *CompareItem `json:"target,omitempty"`
}
type IndexDiffProcessor ¶
type IndexDiffProcessor struct {
// contains filtered or unexported fields
}
func (*IndexDiffProcessor) Name ¶
func (processor *IndexDiffProcessor) Name() string
type OutputQueueConfig ¶
Click to show internal directories.
Click to hide internal directories.