mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 16:19:57 +00:00
AUTH-2587 add config watcher and reload logic for access client forwarder
This commit is contained in:
14
watcher/notify.go
Normal file
14
watcher/notify.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
}
|
Reference in New Issue
Block a user