Make router.Table docs consistent

This commit is contained in:
Milos Gajdos 2019-08-20 21:11:27 +01:00
parent 6beae23afd
commit 30dd3f54f0
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -42,16 +42,17 @@ type Router interface {
String() string
}
// Table is an interface for routing table
type Table interface {
// Create new route in the routing table
Create(Route) error
// Delete deletes existing route from the routing table
// Delete existing route from the routing table
Delete(Route) error
// Update updates route in the routing table
// Update route in the routing table
Update(Route) error
// List returns the list of all routes in the table
// List all routes in the table
List() ([]Route, error)
// Query queries routes in the routing table
// Query routes in the routing table
Query(Query) ([]Route, error)
}