router.Start() is now router.Advertise(). Updated code documentation.

This commit is contained in:
Milos Gajdos
2019-06-20 13:04:58 +01:00
parent 8d5d812e32
commit 1765be049b
2 changed files with 20 additions and 13 deletions

View File

@@ -7,16 +7,16 @@ type Router interface {
Init(...Option) error
// Options returns the router options
Options() Options
// ID returns id of the router
// ID returns the id of the router
ID() string
// Table returns the router routing table
// Table returns the routing table
Table() Table
// Address returns the router adddress
Address() string
// Network returns the router network address
// Network returns the network address of the router
Network() string
// Start starts the router
Start() error
// Advertise starts advertising the routes to the network
Advertise() error
// Stop stops the router
Stop() error
// String returns debug info