AUTH-2587 add config watcher and reload logic for access client forwarder

This commit is contained in:
Dalton
2020-04-13 12:22:00 -05:00
parent 976eb24883
commit 41c358147c
32 changed files with 2929 additions and 8 deletions

14
watcher/notify.go Normal file
View 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()
}