leveldb

package
v0.0.0-...-5c6c1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIR_FILE_SEPARATOR = byte(0x00)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDBStore

type LevelDBStore struct {
	// contains filtered or unexported fields
}

func (*LevelDBStore) BeginTransaction

func (store *LevelDBStore) BeginTransaction(ctx context.Context) (context.Context, error)

func (*LevelDBStore) CommitTransaction

func (store *LevelDBStore) CommitTransaction(ctx context.Context) error

func (*LevelDBStore) Debug

func (store *LevelDBStore) Debug(writer io.Writer)

func (*LevelDBStore) DeleteEntry

func (store *LevelDBStore) DeleteEntry(ctx context.Context, fullpath weed_util.FullPath) (err error)

func (*LevelDBStore) DeleteFolderChildren

func (store *LevelDBStore) DeleteFolderChildren(ctx context.Context, fullpath weed_util.FullPath) (err error)

func (*LevelDBStore) FindEntry

func (store *LevelDBStore) FindEntry(ctx context.Context, fullpath weed_util.FullPath) (entry *filer.Entry, err error)

func (*LevelDBStore) GetName

func (store *LevelDBStore) GetName() string

func (*LevelDBStore) Initialize

func (store *LevelDBStore) Initialize(configuration weed_util.Configuration, prefix string) (err error)

func (*LevelDBStore) InsertEntry

func (store *LevelDBStore) InsertEntry(ctx context.Context, entry *filer.Entry) (err error)

func (*LevelDBStore) KvDelete

func (store *LevelDBStore) KvDelete(ctx context.Context, key []byte) (err error)

func (*LevelDBStore) KvGet

func (store *LevelDBStore) KvGet(ctx context.Context, key []byte) (value []byte, err error)

func (*LevelDBStore) KvPut

func (store *LevelDBStore) KvPut(ctx context.Context, key []byte, value []byte) (err error)

func (*LevelDBStore) ListDirectoryEntries

func (store *LevelDBStore) ListDirectoryEntries(ctx context.Context, dirPath weed_util.FullPath, startFileName string, includeStartFile bool, limit int64, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*LevelDBStore) ListDirectoryPrefixedEntries

func (store *LevelDBStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath weed_util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*LevelDBStore) RollbackTransaction

func (store *LevelDBStore) RollbackTransaction(ctx context.Context) error

func (*LevelDBStore) Shutdown

func (store *LevelDBStore) Shutdown()

func (*LevelDBStore) UpdateEntry

func (store *LevelDBStore) UpdateEntry(ctx context.Context, entry *filer.Entry) (err error)

Jump to

Keyboard shortcuts

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