MCPcopy
hub / github.com/perkeep/perkeep / keyValue

Struct keyValue

pkg/sorted/mongo/mongokv.go:119–123  ·  view source on GitHub ↗

Implementation of KeyValue

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected