SetInEndpoint overrides the hierarchical path in endpoint with path.
(endpoint resolver.Endpoint, path []string)
| 56 | |
| 57 | // SetInEndpoint overrides the hierarchical path in endpoint with path. |
| 58 | func SetInEndpoint(endpoint resolver.Endpoint, path []string) resolver.Endpoint { |
| 59 | endpoint.Attributes = endpoint.Attributes.WithValue(pathKey, pathValue(path)) |
| 60 | return endpoint |
| 61 | } |
| 62 | |
| 63 | // Group splits a slice of endpoints into groups based on |
| 64 | // the first hierarchy path. The first hierarchy path will be removed from the |