Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry keeps track of given files with their checksum
func (*Registry) Add ¶
Add returns (true,nil) if filePath either wasn't added or existed before but had a different checksum, otherwise returns (false,nil).
func (*Registry) Get ¶
Get returns (checksum,true) if a file record exists for filePath, otherwise returns (0,false).
func (*Registry) RemoveWithPrefix ¶
RemoveWithPrefix removes all records with the given prefix.
Click to show internal directories.
Click to hide internal directories.