summaryrefslogtreecommitdiffhomepage
path: root/server/watcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/watcher.go')
-rw-r--r--server/watcher.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/watcher.go b/server/watcher.go
index d08a6ef3..490978f0 100644
--- a/server/watcher.go
+++ b/server/watcher.go
@@ -43,6 +43,7 @@ const (
WATCHER_MRT // UPDATE MSG
WATCHER_BMP
WATCHER_ZEBRA
+ WATCHER_COLLECTOR
WATCHER_GRPC_BESTPATH
WATCHER_GRPC_INCOMING
)
@@ -55,6 +56,7 @@ const (
WATCHER_EVENT_STATE_CHANGE
WATCHER_EVENT_BESTPATH_CHANGE
WATCHER_EVENT_POST_POLICY_UPDATE_MSG
+ WATCHER_EVENT_ADJ_IN
)
type watcherEvent interface {
@@ -88,6 +90,10 @@ type watcherEventStateChangedMsg struct {
timestamp time.Time
}
+type watcherEventAdjInMsg struct {
+ pathList []*table.Path
+}
+
type watcher interface {
notify(watcherEventType) chan watcherEvent
restart(string) error