hash

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFingerprint

type FileFingerprint struct {
	Size    int64  `json:"size"`
	ModTime int64  `json:"modTime"`
	Inode   uint64 `json:"inode"`
}

func GetFingerprint

func GetFingerprint(path string) (FileFingerprint, error)

type HashCache

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

func LoadHashCache

func LoadHashCache() (*HashCache, error)

func (*HashCache) Get

func (c *HashCache) Get(path string, fp FileFingerprint) (string, bool)

func (*HashCache) Put

func (c *HashCache) Put(path string, fp FileFingerprint, hash string)

func (*HashCache) Save

func (c *HashCache) Save() error

Jump to

Keyboard shortcuts

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