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:
ben-toogood
2020-06-30 14:10:13 +01:00
committed by GitHub
parent 6532b6208b
commit a95accad56
6 changed files with 101 additions and 79 deletions

View File

@@ -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.