Restruture

This commit is contained in:
kayos@tcp.direct 2022-01-08 16:59:10 -08:00
parent eff904a86d
commit d0e31034a5
5 changed files with 6 additions and 7 deletions

@ -1,4 +1,4 @@
package database
package bitcask
import (
"errors"
@ -11,7 +11,6 @@ import (
// Casket is an implmentation of a Filer and a Searcher using Bitcask.
type Casket struct {
*bitcask.Bitcask
Searcher
}
// DB is a mapper of a Filer and Searcher implementation using Bitcask.
@ -62,7 +61,7 @@ func (db *DB) With(bucketName string) Casket {
defer db.mu.RUnlock()
d, ok := db.store[bucketName]
if !ok {
return Casket{Bitcask: nil, Searcher: nil}
return Casket{Bitcask: nil}
}
return d
}

@ -1,4 +1,4 @@
package database
package bitcask
import (
"strings"

@ -1,4 +1,4 @@
package database
package bitcask
import (
"encoding/json"

@ -1,4 +1,4 @@
package database
package bitcask
import (
"os"

@ -1,4 +1,4 @@
package database
package bitcask
import (
"errors"