Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemoryStore ¶
NewInMemoryStore returns a new memory-backed Store that can be used for storing fingerprints being scanned. It is valid until the process exits and is not automaticall persisted to disk.
func RestoreRememberedObjects ¶
RestoreRememberedObjects loads a persisted database from disk
Types ¶
type CachedStatFingerprintKey ¶
type CachedStatFingerprintKey string
CachedStatFingerprintKey is an opaque key generated from the stat info of a file.
type SerializedCache ¶
type SerializedCache struct { Fingerprints []record.SerializedFingerprint Files []record.SerializedFile Archives []record.SerializedArchiveFile Repos []record.SerializedGitRepo StatCache map[CachedStatFingerprintKey]uint64 }
SerializedCache is an alternative representation of fingerprintInMemoryCache that uses numeric IDs in place of pointers. Other than creating the serialized struct from an existing fingerprintInMemoryCache, it is directly serializable using the defaults for more or less any encoding format desired
Click to show internal directories.
Click to hide internal directories.