mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-05 00:50:24 +08:00
15 lines
294 B
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()
|
|
}
|