leveldb

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyNotFoundErr = errors.New("100: Key not found")
)

Functions

func NewLevelDBClient

func NewLevelDBClient(path string) (dbaccessor.DbAccessor, error)

@param: path -- directory to store data, not need pre-create

Types

type LevelDB

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

func (*LevelDB) DeleteDir

func (l *LevelDB) DeleteDir(dir string) error

func (*LevelDB) DeleteLeaf

func (l *LevelDB) DeleteLeaf(k string) error

func (*LevelDB) Lock

func (l *LevelDB) Lock(url string) bool

todo

func (*LevelDB) ReadDir

func (l *LevelDB) ReadDir(dir string) ([]*client.Node, error)

func (*LevelDB) ReadLeaf

func (l *LevelDB) ReadLeaf(k string) (string, error)

func (*LevelDB) SaveLeaf

func (l *LevelDB) SaveLeaf(k, v string) error

func (*LevelDB) Unlock

func (l *LevelDB) Unlock(url string) bool

todo

func (*LevelDB) WatcherDir

func (l *LevelDB) WatcherDir(url string) (*client.Response, error)

todo

Jump to

Keyboard shortcuts

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