Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEvent ¶
type ChangeEvent struct {
Path string // Path to the changed file
Timestamp time.Time // Time of the change
Error error // Error if any occurred during processing
}
ChangeEvent represents a file change event
type ChangeListener ¶
type ChangeListener interface {
OnFileChange(event ChangeEvent)
}
ChangeListener is an interface for receiving file change notifications
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher monitors file changes and notifies listeners with debounce support
func NewWatcher ¶
NewWatcher creates a new file watcher with the specified debounce delay
func (*Watcher) AddListener ¶
func (w *Watcher) AddListener(listener ChangeListener)
AddListener adds a listener to receive file change notifications
Click to show internal directories.
Click to hide internal directories.