Added router ID. Deregister remote services when router is stopped.

Added ID function to router interface.

Network registry addresses are deregistered when the router is stopped.

Query has been updated to search for particular GW in lookups.
This commit is contained in:
Milos Gajdos
2019-06-16 23:09:59 +01:00
parent 322eaae529
commit f62fcaad76
4 changed files with 53 additions and 7 deletions

View File

@@ -7,6 +7,8 @@ type Router interface {
Init(...Option) error
// Options returns the router options
Options() Options
// ID returns id of the router
ID() string
// Table returns the router routing table
Table() Table
// Address returns the router adddress