Make router.Table docs consistent
This commit is contained in:
parent
6beae23afd
commit
30dd3f54f0
@ -42,16 +42,17 @@ type Router interface {
|
|||||||
String() string
|
String() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Table is an interface for routing table
|
||||||
type Table interface {
|
type Table interface {
|
||||||
// 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 route in the routing table
|
||||||
Update(Route) error
|
Update(Route) error
|
||||||
// List returns the list of all routes in the table
|
// List all routes in the table
|
||||||
List() ([]Route, error)
|
List() ([]Route, error)
|
||||||
// Query queries routes in the routing table
|
// Query routes in the routing table
|
||||||
Query(Query) ([]Route, error)
|
Query(Query) ([]Route, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user