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

Function addressesToEndpoints

resolver_wrapper.go:214–222  ·  view source on GitHub ↗
(addrs []resolver.Address)

Source from the content-addressed store, hash-verified

212}
213
214func addressesToEndpoints(addrs []resolver.Address) []resolver.Endpoint {
215 endpoints := make([]resolver.Endpoint, 0, len(addrs))
216 for _, a := range addrs {
217 ep := resolver.Endpoint{Addresses: []resolver.Address{a}, Attributes: a.BalancerAttributes}
218 ep.Addresses[0].BalancerAttributes = nil
219 endpoints = append(endpoints, ep)
220 }
221 return endpoints
222}

Callers 2

UpdateStateMethod · 0.85
NewAddressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected