datastore

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: 5 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 ClearHashData

func ClearHashData(fds *Storage)

func ClearHashRelationshipTable

func ClearHashRelationshipTable(fds *Storage)

func CreateHashRelationshipTable

func CreateHashRelationshipTable(fds *Storage)

func CreateHashsTable

func CreateHashsTable(fds *Storage)

Types

type Storage

type Storage struct {
	sl.AppLogger

	Filename string
	// contains filtered or unexported fields
}

func (*Storage) AddHashData

func (fds *Storage) AddHashData(hr *models.HashData) int64

func (*Storage) AddHashRelationship

func (fds *Storage) AddHashRelationship(hr *models.HashRelationship)

func (*Storage) Clear

func (fds *Storage) Clear()

func (*Storage) Create

func (fds *Storage) Create()

func (*Storage) FindHashData

func (fds *Storage) FindHashData(HashData string) []*models.HashData

func (*Storage) GetAllHashData

func (fds *Storage) GetAllHashData() []*models.HashData

func (*Storage) GetAllHashRelationships

func (fds *Storage) GetAllHashRelationships() []*models.HashRelationship

func (*Storage) GetDuplicateHashIds

func (fds *Storage) GetDuplicateHashIds(limit int) []models.HashIdnCount

func (*Storage) GetDuplicateHashes

func (fds *Storage) GetDuplicateHashes(limit int) map[string][]*models.HashRelationship

func (*Storage) GetFilesByHashId

func (fds *Storage) GetFilesByHashId(hashid int64) []string

func (*Storage) GetHashData

func (fds *Storage) GetHashData(ID int64) *models.HashData

func (*Storage) GetHashRelationshipByHash

func (fds *Storage) GetHashRelationshipByHash(hashid int64) []*models.HashRelationship

func (*Storage) ParseDuplicatedHashIDsRows

func (fds *Storage) ParseDuplicatedHashIDsRows(rows *sql.Rows) []models.HashIdnCount

func (*Storage) ParseHashDataRows

func (fds *Storage) ParseHashDataRows(rows *sql.Rows) []*models.HashData

func (*Storage) ParseHashRelationshipRows

func (fds *Storage) ParseHashRelationshipRows(rows *sql.Rows) []*models.HashRelationship

func (*Storage) ParseHashRelationshipRows1

func (fds *Storage) ParseHashRelationshipRows1(rows *sql.Rows) map[string]*models.HashRelationship

Jump to

Keyboard shortcuts

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