Documentation ¶
Index ¶
- type HashDB
- func (db *HashDB) DeleteFilesWithLastCheckTimestampBefore(ctx context.Context, cutoffTime time.Time) error
- func (db *HashDB) GetFileCount(ctx context.Context) (int, error)
- func (db *HashDB) GetLastCheckTimestamp(ctx context.Context, path string) (time.Time, error)
- func (db *HashDB) GetPathForHash(ctx context.Context, hash []byte) (string, error)
- func (db *HashDB) GetPathForHashHexString(ctx context.Context, hash string) (string, error)
- func (db *HashDB) HaveHash(ctx context.Context, hash []byte) bool
- func (db *HashDB) HaveHashHexString(ctx context.Context, hash string) bool
- func (db *HashDB) ListAll(ctx context.Context) ([]HashSet, error)
- func (db *HashDB) UpsertFileHash(ctx context.Context, path string, hash []byte) error
- type HashSet
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 CreateInMemory ¶
func (*HashDB) DeleteFilesWithLastCheckTimestampBefore ¶
func (*HashDB) GetLastCheckTimestamp ¶
func (*HashDB) GetPathForHash ¶
func (*HashDB) GetPathForHashHexString ¶
func (*HashDB) HaveHashHexString ¶
Click to show internal directories.
Click to hide internal directories.