Changed documentation.

This commit is contained in:
Milos Gajdos 2019-07-25 23:52:54 +01:00
parent c3a8146d99
commit 22d0f1f08f
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -24,15 +24,15 @@ type Router interface {
Process(*Advert) error Process(*Advert) error
// Create new route in the routing table // Create new route in the routing table
Create(Route) error Create(Route) error
// Delete deletes existing route from the routing table // Delete existing route from the routing table
Delete(Route) error Delete(Route) error
// Update updates route in the routing table // Update exiting route in the routing table
Update(Route) error Update(Route) error
// List returns the list of all routes in the table // List lists all routes in the routing table
List() ([]Route, error) List() ([]Route, error)
// Lookup looks up routes in the routing table and returns them // Lookup queries routes in the routing table
Lookup(Query) ([]Route, error) Lookup(Query) ([]Route, error)
// Watch returns a watcher which allows to track updates to the routing table // Watch returns a watcher which tracks updates to the routing table
Watch(opts ...WatchOption) (Watcher, error) Watch(opts ...WatchOption) (Watcher, error)
// Status returns router status // Status returns router status
Status() Status Status() Status