hashdb

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashDB

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

func ConnectDB

func ConnectDB(datasource string) (db *HashDB, err error)

func (*HashDB) AutoVacuum

func (v *HashDB) AutoVacuum() error

func (*HashDB) Close

func (v *HashDB) Close()

func (*HashDB) Count

func (v *HashDB) Count() (int64, error)

func (*HashDB) DeleteData

func (v *HashDB) DeleteData(hosttype, path string) (int64, error)

func (*HashDB) GetData

func (v *HashDB) GetData() (*list.List, error)

func (*HashDB) InitDB

func (v *HashDB) InitDB() error

func (*HashDB) InsertIgnoreData

func (v *HashDB) InsertIgnoreData(hostType, path string, algorithm int64, data []byte) (int64, error)

func (*HashDB) InsertUpdateData

func (v *HashDB) InsertUpdateData(hostType, path string, algorithm int64, data []byte) (int64, error)

func (*HashDB) Reduce

func (v *HashDB) Reduce() error

type Software

type Software struct {
	HostType  string
	Path      string
	Algorithm int64
	Data      []byte
}

Jump to

Keyboard shortcuts

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