Notify the Overlay when routes change
This commit is contained in:
1 parent
c2ad4c5633
commit
46d454730f
5 files changed
+88
-14
No files matched your search
@@ -11,6 +11,10 @@ type Overlay interface {
|
||||
|
||||
// Form a packet-forwarding connection.
|
||||
MakeForwarder(ForwarderParams) (OverlayForwarder, error)
|
||||
|
||||
// The routes have changed, so any cached information should
|
||||
// be discarded.
|
||||
InvalidateRoutes()
|
||||
}
|
||||
|
||||
type ForwarderParams struct {
|
||||
@@ -81,6 +85,9 @@ func (NullOverlay) MakeForwarder(ForwarderParams) (OverlayForwarder, error) {
|
||||
return NullOverlay{}, nil
|
||||
}
|
||||
|
||||
func (NullOverlay) InvalidateRoutes() {
|
||||
}
|
||||
|
||||
func (NullOverlay) SetListener(OverlayForwarderListener) {
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user