Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileChangeRecord ¶
type FileChangeRecord struct {
AllCached mapset.Set // all cached file
FileFilter FileFilterFunc // if cb return true represents cb digest the file
// contains filtered or unexported fields
}
this is an file system cache it can be used for listen changes of file in a specific dir
func NewFileChangeRecord ¶
func NewFileChangeRecord(fileFilter FileFilterFunc) FileChangeRecord
func (*FileChangeRecord) RefreshCache ¶
func (fc *FileChangeRecord) RefreshCache(keyDir string) (creates mapset.Set, deletes mapset.Set, updates mapset.Set, err error)
Click to show internal directories.
Click to hide internal directories.