Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DupFinder ¶
type DupFinder struct {
// contains filtered or unexported fields
}
A DupFinder finds duplicate files.
func NewDupFinder ¶
NewDupFinder returns a new *DupFinder with the given options.
func (*DupFinder) FindDuplicates ¶
func (*DupFinder) Statistics ¶
func (f *DupFinder) Statistics() *Statistics
type Option ¶
type Option func(*DupFinder)
An Option sets an option on a *DupFinder.
func WithChannelBufferCapacity ¶
WithChannelBufferCapacity sets the buffer capacity between different components. Larger values increase performance by allowing different components to run at different speeds, at the expense of memory usage.
func WithErrorHandler ¶
type Statistics ¶
type Statistics struct { Errors uint64 `json:"errors"` DirEntries uint64 `json:"dirEntries"` Files uint64 `json:"files"` FilesOpened uint64 `json:"filesOpened"` FilesOpenedPercent float64 `json:"filesOpenedPercent"` TotalBytes uint64 `json:"totalBytes"` BytesHashed uint64 `json:"bytesHashed"` BytesHashedPercent float64 `json:"bytesHashedPercent"` }
Statistics contains various statistics.
Click to show internal directories.
Click to hide internal directories.