mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
26 lines
472 B
Go
26 lines
472 B
Go
package embedded
|
|
|
|
import (
|
|
"github.com/syndtr/goleveldb/leveldb"
|
|
)
|
|
|
|
type EmbeddedStore struct {
|
|
db *leveldb.DB
|
|
}
|
|
|
|
func NewEmbeddedStore(dir string) (filer *EmbeddedStore, err error) {
|
|
filer = &EmbeddedStore{}
|
|
if filer.db, err = leveldb.OpenFile(dir, nil); err != nil {
|
|
return
|
|
}
|
|
return
|
|
}
|
|
|
|
func (filer *EmbeddedStore) CreateFile(filePath string, fid string) (err error) {
|
|
return nil
|
|
}
|
|
|
|
func (filer *EmbeddedStore) Mkdir(filePath string) (err error) {
|
|
return nil
|
|
}
|