FromEndpoint returns the hierarchical path of endpoint.
(endpoint resolver.Endpoint)
| 50 | |
| 51 | // FromEndpoint returns the hierarchical path of endpoint. |
| 52 | func FromEndpoint(endpoint resolver.Endpoint) []string { |
| 53 | path, _ := endpoint.Attributes.Value(pathKey).(pathValue) |
| 54 | return path |
| 55 | } |
| 56 | |
| 57 | // SetInEndpoint overrides the hierarchical path in endpoint with path. |
| 58 | func SetInEndpoint(endpoint resolver.Endpoint, path []string) resolver.Endpoint { |