Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeySizes ¶
Types ¶
type Counter ¶
func NewCounter ¶
type CounterPair ¶
type CounterPair struct { Key interface{} Count int }
type CounterPairsByKey ¶
type CounterPairsByKey []CounterPair
func (CounterPairsByKey) Len ¶
func (c CounterPairsByKey) Len() int
func (CounterPairsByKey) Less ¶
func (c CounterPairsByKey) Less(i, j int) bool
func (CounterPairsByKey) Swap ¶
func (c CounterPairsByKey) Swap(i, j int)
type Encounter ¶
type Encounter interface { CheckIn(interface{}) int GetScores() map[interface{}]int GetCounterPairs() []CounterPair KeysCount() int TotalCount() int }
func NewEncounter ¶
type InodeChecksums ¶
type InodeChecksums interface { CheckIn(fileStat FileStat) (string, bool, bool, <-chan struct{}) Update(fileStat FileStat, c string, written int64) Delete(fileStat FileStat) GetStats() (inodesCount int, totalSize int64) }
func NewInodeChecksums ¶
func NewInodeChecksums(initCap int) InodeChecksums
type Inofs ¶
func (Inofs) GetFileStatSorted ¶
type McifsRegister ¶
type McifsRegister interface { CheckIn(fs FileStat, contentKey string) map[Inode][]FileStat GetRegs(copy bool) Mcifs GetKeysCounter() Encounter }
func NewMcifsRegister ¶
func NewMcifsRegister(initCap int) McifsRegister
type Mifs ¶
type Mifs map[string]map[Inode][]FileStat
func (*Mifs) GetDupGroupsCount ¶
func (*Mifs) GetGroupsTotal ¶
type MifsRegister ¶
type MifsRegister interface { CheckIn(fs FileStat) map[Inode][]FileStat GetRegs(copy bool) Mifs GetSizesCounter() Encounter }
func NewMifsRegister ¶
func NewMifsRegister(initCap int) MifsRegister
Click to show internal directories.
Click to hide internal directories.