MCPcopy
hub / github.com/grpc/grpc-go / SetInEndpoint

Function SetInEndpoint

internal/hierarchy/hierarchy.go:58–61  ·  view source on GitHub ↗

SetInEndpoint overrides the hierarchical path in endpoint with path.

(endpoint resolver.Endpoint, path []string)

Source from the content-addressed store, hash-verified

56
57// SetInEndpoint overrides the hierarchical path in endpoint with path.
58func 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

Calls 2

pathValueTypeAlias · 0.85
WithValueMethod · 0.80