threadSafeMap implements ThreadSafeStore
| 56 | |
| 57 | // threadSafeMap implements ThreadSafeStore |
| 58 | type threadSafeMap struct { |
| 59 | lock sync.RWMutex |
| 60 | items map[string]interface{} |
| 61 | |
| 62 | // indexers maps a name to an IndexFunc |
| 63 | indexers Indexers |
| 64 | // indices maps a name to an Index |
| 65 | indices Indices |
| 66 | } |
| 67 | |
| 68 | func (c *threadSafeMap) Add(key string, obj interface{}) { |
| 69 | c.lock.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected