models

package
v0.0.0-...-38c3e4b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const HashToFilesHashIDColumn = "hashid"
View Source
const HashToFilesIDColumn = "id"
View Source
const HashToFilesPathColumn = "path"
View Source
const HashToFilesTableName = "hashtofiles"
View Source
const HashToFilesTypeColumn = "type"
View Source
const HashToFilesViewDelete = "type"
View Source
const HashsDataColumn = "data"
View Source
const HashsIDColumn = "id"
View Source
const HashsTableName = "hashes"

Variables

This section is empty.

Functions

func SaveDuplicates

func SaveDuplicates(FilePath string, Log sli.ISimpleLogger, hd map[string][]*HashRelationship) bool

Types

type HashData

type HashData struct {
	ID   int64
	Data string
}

func (*HashData) CheckFileExists

func (hd *HashData) CheckFileExists(filename string) (bool, error)

func (*HashData) LoadHashData

func (hd *HashData) LoadHashData(FilePath string, Log sli.ISimpleLogger) (*HashData, bool)

func (*HashData) Save

func (hd *HashData) Save(FilePath string, Log sli.ISimpleLogger) bool

func (*HashData) String

func (hd *HashData) String() string

type HashIdnCount

type HashIdnCount struct {
	HashId int64
	Count  int64
}

type HashRelationship

type HashRelationship struct {
	ID   int64
	Path string
	Type int
	Hash *HashData
}

func (*HashRelationship) CSV

func (hr *HashRelationship) CSV() []string

func (*HashRelationship) GenHashData

func (hr *HashRelationship) GenHashData(Logger sli.ISimpleLogger, FilePath string, isdir bool) bool

func (*HashRelationship) String

func (hr *HashRelationship) String() string

Jump to

Keyboard shortcuts

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