NewEndpointMap creates a new EndpointMap.
()
| 191 | |
| 192 | // NewEndpointMap creates a new EndpointMap. |
| 193 | func 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. |
no outgoing calls