go_aya_alvm_adb

package module
v0.0.0-...-2939ef9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 16 Imported by: 8

README

go-aya-alvm-adb

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyDB

func CreateEmptyDB(dbdir *mfs.Directory) error

func MergeClose

func MergeClose(dbdir *mfs.Directory, batch *leveldb.Batch, logKey string) error

func ReadClose

func ReadClose(dbdir *mfs.Directory, rf ReadingFunc, logKey string) error

Types

type MFSStorage

type MFSStorage struct {
	storage.Storage
	// contains filtered or unexported fields
}

func NewMFSStorage

func NewMFSStorage(mdir *mfs.Directory, dbkey string) *MFSStorage

func (*MFSStorage) Close

func (ms *MFSStorage) Close() error

func (*MFSStorage) Create

func (ms *MFSStorage) Create(fd storage.FileDesc) (storage.Writer, error)

func (*MFSStorage) Flush

func (ms *MFSStorage) Flush() error

func (*MFSStorage) GetMeta

func (ms *MFSStorage) GetMeta() (storage.FileDesc, error)

func (*MFSStorage) List

func (ms *MFSStorage) List(ft storage.FileType) ([]storage.FileDesc, error)

func (*MFSStorage) Lock

func (ms *MFSStorage) Lock() (storage.Locker, error)

func (*MFSStorage) Log

func (ms *MFSStorage) Log(str string)

func (*MFSStorage) Open

func (ms *MFSStorage) Open(fd storage.FileDesc) (storage.Reader, error)

func (*MFSStorage) Remove

func (ms *MFSStorage) Remove(fd storage.FileDesc) error

func (*MFSStorage) Rename

func (ms *MFSStorage) Rename(oldfd, newfd storage.FileDesc) error

func (*MFSStorage) SetMeta

func (ms *MFSStorage) SetMeta(fd storage.FileDesc) error

type ReadingFunc

type ReadingFunc func(db *leveldb.DB) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL