cloudflared-mirror/watcher/notify.go

15 lines
294 B
Go

package watcher
// Notification is the delegate methods from the Notifier
type Notification interface {
WatcherItemDidChange(string)
WatcherDidError(error)
}
// Notifier is the base interface for file watching
type Notifier interface {
Start(Notification)
Add(string) error
Shutdown()
}