d48eee948e
now how pluggable options for leveldb gouchstore in memory only
11 lines
246 B
Go
11 lines
246 B
Go
package gouchstore
|
|
|
|
import (
|
|
"github.com/mschoch/gouchstore"
|
|
)
|
|
|
|
func kvToDocDocInfo(key, val []byte) (*gouchstore.Document, *gouchstore.DocumentInfo) {
|
|
id := string(key)
|
|
return gouchstore.NewDocument(id, val), gouchstore.NewDocumentInfo(id)
|
|
}
|