router: add metadata to routes (#1763)
* router: add metadata to route * router/registry: set node metadata in route * router/service: pass metadata to/from router service
This commit is contained in:
@@ -27,6 +27,8 @@ type Route struct {
|
||||
Link string
|
||||
// Metric is the route cost metric
|
||||
Metric int64
|
||||
// Metadata for the route
|
||||
Metadata map[string]string
|
||||
}
|
||||
|
||||
// Hash returns route hash sum.
|
||||
|
||||
Reference in New Issue
Block a user