Documentation
¶
Index ¶
- func CreateEmptyDB(dbdir *mfs.Directory) error
- func MergeClose(dbdir *mfs.Directory, batch *leveldb.Batch, logKey string) error
- func ReadClose(dbdir *mfs.Directory, rf ReadingFunc, logKey string) error
- type MFSStorage
- func (ms *MFSStorage) Close() error
- func (ms *MFSStorage) Create(fd storage.FileDesc) (storage.Writer, error)
- func (ms *MFSStorage) Flush() error
- func (ms *MFSStorage) GetMeta() (storage.FileDesc, error)
- func (ms *MFSStorage) List(ft storage.FileType) ([]storage.FileDesc, error)
- func (ms *MFSStorage) Lock() (storage.Locker, error)
- func (ms *MFSStorage) Log(str string)
- func (ms *MFSStorage) Open(fd storage.FileDesc) (storage.Reader, error)
- func (ms *MFSStorage) Remove(fd storage.FileDesc) error
- func (ms *MFSStorage) Rename(oldfd, newfd storage.FileDesc) error
- func (ms *MFSStorage) SetMeta(fd storage.FileDesc) error
- type ReadingFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyDB ¶
func CreateEmptyDB(dbdir *mfs.Directory) error
func ReadClose ¶
func ReadClose(dbdir *mfs.Directory, rf ReadingFunc, logKey string) error
Types ¶
type MFSStorage ¶
func NewMFSStorage ¶
func NewMFSStorage(mdir *mfs.Directory, dbkey string) *MFSStorage
func (*MFSStorage) Close ¶
func (ms *MFSStorage) Close() error
func (*MFSStorage) Flush ¶
func (ms *MFSStorage) Flush() error
func (*MFSStorage) Log ¶
func (ms *MFSStorage) Log(str string)
type ReadingFunc ¶
Click to show internal directories.
Click to hide internal directories.