Documentation ¶
Overview ¶
Package proc provides actual actions to be performed once the sync has filtered all events
Index ¶
- type Merger
- type ProcessFunc
- type SourceDiff
- func (diff *SourceDiff) FilterMissing(source sync.PathSyncSource, target sync.PathSyncTarget, in []*tree.Node, ...) (out map[string]*filters.BatchedEvent)
- func (diff *SourceDiff) String() string
- func (diff *SourceDiff) ToBidirectionalBatch(leftTarget sync.PathSyncTarget, rightTarget sync.PathSyncTarget) (batch *filters.BidirectionalBatch, err error)
- func (diff *SourceDiff) ToUnidirectionalBatch(direction string) (batch *filters.Batch, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Merger ¶
type Merger struct { BatchesChannel chan *filters.Batch RequeueChannels map[PathSyncSource]chan EventInfo LocksChannel chan filters.LockEvent UnlocksChannel chan filters.UnlockEvent JobsInterrupt chan bool GlobalContext context.Context // contains filtered or unexported fields }
func (*Merger) AddRequeueChannel ¶
func (b *Merger) AddRequeueChannel(source PathSyncSource, channel chan EventInfo)
func (*Merger) ProcessBatches ¶
func (b *Merger) ProcessBatches()
func (*Merger) RegisterEventChannel ¶
func (b *Merger) RegisterEventChannel(out chan ProcessorEvent)
type ProcessFunc ¶
type ProcessFunc func(event *filters.BatchedEvent, operationId string) error
type SourceDiff ¶
type SourceDiff struct { Left sync.PathSyncSource Right sync.PathSyncSource MissingLeft []*tree.Node MissingRight []*tree.Node Context context.Context }
func ComputeSourcesDiff ¶
func ComputeSourcesDiff(ctx context.Context, left sync.PathSyncSource, right sync.PathSyncSource, strong bool) (diff *SourceDiff, err error)
func (*SourceDiff) FilterMissing ¶
func (diff *SourceDiff) FilterMissing(source sync.PathSyncSource, target sync.PathSyncTarget, in []*tree.Node, folders bool, nofilter bool) (out map[string]*filters.BatchedEvent)
func (*SourceDiff) String ¶
func (diff *SourceDiff) String() string
func (*SourceDiff) ToBidirectionalBatch ¶
func (diff *SourceDiff) ToBidirectionalBatch(leftTarget sync.PathSyncTarget, rightTarget sync.PathSyncTarget) (batch *filters.BidirectionalBatch, err error)
func (*SourceDiff) ToUnidirectionalBatch ¶
func (diff *SourceDiff) ToUnidirectionalBatch(direction string) (batch *filters.Batch, err error)
Click to show internal directories.
Click to hide internal directories.