Documentation
¶
Overview ¶
Package dupechecking runs tracker-specific duplicate searches and converts the results into upload review state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service coordinates duplicate checks across configured tracker handlers.
func NewService ¶
NewService builds a duplicate-checking service with shared HTTP and tracker metadata clients.
func (*Service) Check ¶
func (s *Service) Check(ctx context.Context, meta api.PreparedMetadata, trackers []string) (api.DupeCheckSummary, error)
Check searches the requested trackers for duplicates of meta.SourcePath. Missing source paths return an error, an empty tracker list returns a summary note, and context cancellation stops queued work, waits briefly for active workers, and returns a cancellation error instead of a partial summary. Progress callback panics are logged and do not abort the duplicate check.