Update router comments

This commit is contained in:
Asim Aslam 2019-12-17 08:28:45 +00:00
parent 01f0e70213
commit 6027a81f06

View File

@ -24,11 +24,11 @@ type Router interface {
Options() Options Options() Options
// The routing table // The routing table
Table() Table Table() Table
// Advertise advertises routes to the network // Advertise advertises routes
Advertise() (<-chan *Advert, error) Advertise() (<-chan *Advert, error)
// Process processes incoming adverts // Process processes incoming adverts
Process(*Advert) error Process(*Advert) error
// Solicit advertises the whole routing table to the network // Solicit advertises the whole routing table
Solicit() error Solicit() error
// Lookup queries routes in the routing table // Lookup queries routes in the routing table
Lookup(...QueryOption) ([]Route, error) Lookup(...QueryOption) ([]Route, error)