Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWatcher ¶
type FileWatcher interface { FilePath() string CallbackSize() int RegisterCallback(callback func(data []byte)) int64 DeregisterCallback(uniqueID int64) StartWatching() error StopWatching() CallOnceAll() error CallOnceSpecific(uniqueID int64) error }
func NewFileWatcher ¶
func NewFileWatcher(filePath string) (FileWatcher, error)
NewFileWatcher creates a new FileWatcher instance. filePath should be a path to a file, not a directory.
Click to show internal directories.
Click to hide internal directories.