Keys returns a slice of all current map keys, as endpoints specifying the addresses present in the endpoint keys, in which uniqueness is determined by the unordered set of addresses. Thus, endpoint information returned is not the full endpoint data (drops duplicated addresses and attributes) but can
()
| 241 | // used for EndpointMap accesses. |
| 242 | // Deprecated: Use EndpointMap.All() instead. |
| 243 | func (em *EndpointMap[T]) Keys() []Endpoint { |
| 244 | ret := make([]Endpoint, 0, len(em.endpoints)) |
| 245 | for _, en := range em.endpoints { |
| 246 | ret = append(ret, en.decodedKey) |
| 247 | } |
| 248 | return ret |
| 249 | } |
| 250 | |
| 251 | // Values returns a slice of all current map values. |
| 252 | // Deprecated: Use EndpointMap.All() instead. |
no outgoing calls