Versions in this module Expand all Collapse all v0 v0.3.1 Aug 18, 2019 Changes in this version + type AllFileMatcher struct + func NewAllFileMatcher(matchers ...FileMatcher) *AllFileMatcher + func (afm *AllFileMatcher) Match(path string) bool + type AnyFileMatcher struct + func NewAnyFileMatcher(matchers ...FileMatcher) *AnyFileMatcher + func (afm *AnyFileMatcher) Match(path string) bool + type ChainedFileChangeCallback struct + func NewChainedFileChangeCallback(callbacks ...FileChangeCallback) *ChainedFileChangeCallback + func (cfcc *ChainedFileChangeCallback) Accept(path string, mode FileChangeMode) + type ExactFileMatcher struct + func NewExactFileMatcher(filename string) *ExactFileMatcher + func (efm *ExactFileMatcher) Match(path string) bool + type FileChangeCallback interface + Accept func(path string, mode FileChangeMode) + type FileChangeCallbackWrapper struct + func NewFileChangeCallbackWrapper(f func(path string, mode FileChangeMode)) *FileChangeCallbackWrapper + func (fccw *FileChangeCallbackWrapper) Accept(path string, mode FileChangeMode) + type FileChangeCompare struct + func NewFileChangeCompare(fileCompareInfo FileCompareInfo) *FileChangeCompare + func NewFileMD5ChangeCompare() *FileChangeCompare + func NewFileTimeChangeCompare() *FileChangeCompare + func (fcc *FileChangeCompare) SetInitialFiles(files []string) + func (fcc *FileChangeCompare) UpdateFiles(files []string) []FileChangeEvent + type FileChangeEvent struct + ChangeMode FileChangeMode + Name string + func NewFileCreateEvent(file string) FileChangeEvent + func NewFileDeleteEvent(file string) FileChangeEvent + func NewFileModifyEvent(file string) FileChangeEvent + type FileChangeMode int + const Create + const Delete + const Modify + type FileChangeMonitor struct + func NewFileChangeMonitor(checkInterval int) *FileChangeMonitor + func (fm *FileChangeMonitor) AddMonitorFile(path string, recursive bool, fileMatcher FileMatcher, ...) error + func (fm *FileChangeMonitor) RemoveMonitorFile(path string) error + func (fm *FileChangeMonitor) Stop() + func (fm *FileChangeMonitor) Wait() + type FileCompareInfo interface + GetCompareInfo func(filename string) (interface{}, error) + IsSame func(fileCompareInfo_1 interface{}, fileCompareInfo_2 interface{}) bool + type FileMD5CompareInfo struct + func NewFileMD5CompareInfo() *FileMD5CompareInfo + func (fmci *FileMD5CompareInfo) GetCompareInfo(filename string) (interface{}, error) + func (fmci *FileMD5CompareInfo) IsSame(fileCompareInfo_1 interface{}, fileCompareInfo_2 interface{}) bool + type FileMatcher interface + Match func(path string) bool + type FileModTimeCompareInfo struct + func NewFileModTimeCompareInfo() *FileModTimeCompareInfo + func (fmtci *FileModTimeCompareInfo) GetCompareInfo(filename string) (interface{}, error) + func (fmtci *FileModTimeCompareInfo) IsSame(fileCompareInfo_1 interface{}, fileCompareInfo_2 interface{}) bool + type MatchAllFile struct + func NewMatchAllFile() *MatchAllFile + func (maf MatchAllFile) Match(path string) bool + type PatternFileMatcher struct + func NewPatternFileMatcher(pattern string) *PatternFileMatcher + func (pfm *PatternFileMatcher) Match(path string) bool + type PrintFileChangeCallback struct + func NewPrintFileChangeCallback() *PrintFileChangeCallback + func (pfcc *PrintFileChangeCallback) Accept(path string, mode FileChangeMode) + type RegexFileMatcher struct + func NewRegexFileMatcher(expr string) (*RegexFileMatcher, error) + func (rfm *RegexFileMatcher) Match(path string) bool