Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 chain 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.