Documentation ¶
Index ¶
- Variables
- func NewLevelDBClient(path string) (dbaccessor.DbAccessor, error)
- type LevelDB
- func (l *LevelDB) DeleteDir(dir string) error
- func (l *LevelDB) DeleteLeaf(k string) error
- func (l *LevelDB) Lock(url string) bool
- func (l *LevelDB) ReadDir(dir string) ([]*client.Node, error)
- func (l *LevelDB) ReadLeaf(k string) (string, error)
- func (l *LevelDB) SaveLeaf(k, v string) error
- func (l *LevelDB) Unlock(url string) bool
- func (l *LevelDB) WatcherDir(url string) (*client.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KeyNotFoundErr = errors.New("100: Key not found")
)
Functions ¶
func NewLevelDBClient ¶
@param: path -- directory to store data, not need pre-create
Types ¶
type LevelDB ¶
type LevelDB struct {
// contains filtered or unexported fields
}
func (*LevelDB) DeleteLeaf ¶
Click to show internal directories.
Click to hide internal directories.