db

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateInfo

type DuplicateInfo struct {
	Path  string
	Tag   int64
	Count int64
}

type DuplicateSet

type DuplicateSet struct {
	Paths []string
	Size  int64
	Hash  [32]byte
	Tag   int64
}

type DuplicateSummary

type DuplicateSummary struct {
	Files     int64
	Unique    int64
	Duplicate int64
	Overhead  int64
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func New

func New(dataSourceName string) (*Session, herror.Interface)

func (*Session) Add

func (s *Session) Add(dupe DuplicateSet) herror.Interface

func (*Session) AddAll

func (s *Session) AddAll(dupes []DuplicateSet) herror.Interface

func (*Session) AddAllC

func (s *Session) AddAllC(dupes <-chan DuplicateSet) herror.Interface

func (*Session) AllDuplicates

func (s *Session) AllDuplicates() ([]DuplicateSet, herror.Interface)

func (*Session) AllDuplicatesC

func (s *Session) AllDuplicatesC() (<-chan DuplicateSet, herror.Interface)

func (*Session) CreateIndexes

func (s *Session) CreateIndexes() herror.Interface

func (*Session) Initialize

func (s *Session) Initialize() herror.Interface

func (*Session) Lookup

func (s *Session) Lookup(path string) (DuplicateSet, herror.Interface)

func (*Session) LookupAll

func (s *Session) LookupAll(path string, includeHidden bool) ([]DuplicateInfo, herror.Interface)

func (*Session) PruneSingletons

func (s *Session) PruneSingletons() herror.Interface

func (*Session) Remove

func (s *Session) Remove(path string) herror.Interface

func (*Session) Summary

func (s *Session) Summary() (DuplicateSummary, herror.Interface)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL