Returns all items as map[string]interface{}
()
| 253 | |
| 254 | // Returns all items as map[string]interface{} |
| 255 | func (m ConcurrentHashMap) Items() map[string]interface{} { |
| 256 | tmp := make(map[string]interface{}) |
| 257 | |
| 258 | // Insert items to temporary map. |
| 259 | for item := range m.IterBuffered() { |
| 260 | tmp[item.Key] = item.Val |
| 261 | } |
| 262 | |
| 263 | return tmp |
| 264 | } |
| 265 | |
| 266 | // Iterator callback,called for every key,value found in |
| 267 | // maps. RLock is held for all calls for a given shard |
nothing calls this directly
no test coverage detected