Documentation ¶
Index ¶
- func DisableDebug()
- func EnableDebug() chan string
- func NumberOfFileWatchers() int
- func NumberOfFolderWatchers() int
- type FileWatcher
- func (fileWatcher *FileWatcher) IsRunning() bool
- func (filewatcher *FileWatcher) Modified() chan bool
- func (filewatcher *FileWatcher) Moved() chan bool
- func (fileWatcher *FileWatcher) SetFile(filePath string)
- func (fileWatcher *FileWatcher) Start()
- func (fileWatcher *FileWatcher) Stop()
- func (filewatcher *FileWatcher) Stopped() chan bool
- func (fileWatcher *FileWatcher) String() string
- type FolderChange
- type FolderWatcher
- func (folderWatcher *FolderWatcher) ChangeDetails() chan *FolderChange
- func (folderWatcher *FolderWatcher) IsRunning() bool
- func (folderWatcher *FolderWatcher) Modified() chan bool
- func (folderWatcher *FolderWatcher) Moved() chan bool
- func (folderWatcher *FolderWatcher) Start()
- func (folderWatcher *FolderWatcher) Stop()
- func (folderWatcher *FolderWatcher) Stopped() chan bool
- func (folderWatcher *FolderWatcher) String() string
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableDebug ¶ added in v1.0.0
func DisableDebug()
func EnableDebug ¶ added in v1.0.0
func EnableDebug() chan string
func NumberOfFileWatchers ¶ added in v1.0.0
func NumberOfFileWatchers() int
func NumberOfFolderWatchers ¶ added in v1.0.0
func NumberOfFolderWatchers() int
Types ¶
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
func NewFileWatcher ¶
func NewFileWatcher(filePath string, checkIntervalInSeconds int) *FileWatcher
func (*FileWatcher) IsRunning ¶
func (fileWatcher *FileWatcher) IsRunning() bool
func (*FileWatcher) Modified ¶
func (filewatcher *FileWatcher) Modified() chan bool
func (*FileWatcher) Moved ¶
func (filewatcher *FileWatcher) Moved() chan bool
func (*FileWatcher) SetFile ¶
func (fileWatcher *FileWatcher) SetFile(filePath string)
func (*FileWatcher) Start ¶
func (fileWatcher *FileWatcher) Start()
func (*FileWatcher) Stop ¶
func (fileWatcher *FileWatcher) Stop()
func (*FileWatcher) Stopped ¶
func (filewatcher *FileWatcher) Stopped() chan bool
func (*FileWatcher) String ¶
func (fileWatcher *FileWatcher) String() string
type FolderChange ¶
type FolderChange struct {
// contains filtered or unexported fields
}
func (*FolderChange) Modified ¶ added in v1.0.0
func (folderChange *FolderChange) Modified() []string
func (*FolderChange) Moved ¶
func (folderChange *FolderChange) Moved() []string
func (*FolderChange) New ¶
func (folderChange *FolderChange) New() []string
func (*FolderChange) String ¶
func (folderChange *FolderChange) String() string
func (*FolderChange) TimeStamp ¶
func (folderChange *FolderChange) TimeStamp() time.Time
type FolderWatcher ¶
type FolderWatcher struct {
// contains filtered or unexported fields
}
func NewFolderWatcher ¶
func (*FolderWatcher) ChangeDetails ¶ added in v1.0.0
func (folderWatcher *FolderWatcher) ChangeDetails() chan *FolderChange
func (*FolderWatcher) IsRunning ¶
func (folderWatcher *FolderWatcher) IsRunning() bool
func (*FolderWatcher) Modified ¶ added in v1.0.0
func (folderWatcher *FolderWatcher) Modified() chan bool
func (*FolderWatcher) Moved ¶ added in v1.0.0
func (folderWatcher *FolderWatcher) Moved() chan bool
func (*FolderWatcher) Start ¶
func (folderWatcher *FolderWatcher) Start()
func (*FolderWatcher) Stop ¶
func (folderWatcher *FolderWatcher) Stop()
func (*FolderWatcher) Stopped ¶
func (folderWatcher *FolderWatcher) Stopped() chan bool
func (*FolderWatcher) String ¶
func (folderWatcher *FolderWatcher) String() string
Click to show internal directories.
Click to hide internal directories.