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

Function NewEndpointMap

resolver/map.go:193–197  ·  view source on GitHub ↗

NewEndpointMap creates a new EndpointMap.

()

Source from the content-addressed store, hash-verified

191
192// NewEndpointMap creates a new EndpointMap.
193func NewEndpointMap[T any]() *EndpointMap[T] {
194 return &EndpointMap[T]{
195 endpoints: make(map[endpointMapKey]endpointData[T]),
196 }
197}
198
199// encodeEndpoint returns a string that uniquely identifies the unordered set of
200// addresses within an endpoint.

Callers 3

BuildMethod · 0.92

Calls

no outgoing calls

Tested by 2