Implementation of KeyValue
| 117 | |
| 118 | // Implementation of KeyValue |
| 119 | type keyValue struct { |
| 120 | session *mgo.Session // so we can close it |
| 121 | mu sync.Mutex // guards db |
| 122 | db *mgo.Collection |
| 123 | } |
| 124 | |
| 125 | func (kv *keyValue) Get(key string) (string, error) { |
| 126 | kv.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected