MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / Items

Method Items

BaseServer/concurrentHashMap.go:255–264  ·  view source on GitHub ↗

Returns all items as map[string]interface{}

()

Source from the content-addressed store, hash-verified

253
254// Returns all items as map[string]interface{}
255func (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

Callers

nothing calls this directly

Calls 1

IterBufferedMethod · 0.95

Tested by

no test coverage detected