leveldb

package
v0.0.0-...-27f001b Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const Name = "leveldb"

Variables

This section is empty.

Functions

func StoreConstructor

func StoreConstructor(config map[string]interface{}) (store.KVStore, error)

Types

type LevelDBBatch

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

func (*LevelDBBatch) Close

func (ldb *LevelDBBatch) Close() error

func (*LevelDBBatch) Delete

func (ldb *LevelDBBatch) Delete(key []byte)

func (*LevelDBBatch) Execute

func (ldb *LevelDBBatch) Execute() error

func (*LevelDBBatch) Set

func (ldb *LevelDBBatch) Set(key, val []byte)

type LevelDBIterator

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

func (*LevelDBIterator) Close

func (ldi *LevelDBIterator) Close()

func (*LevelDBIterator) Current

func (ldi *LevelDBIterator) Current() ([]byte, []byte, bool)

func (*LevelDBIterator) Key

func (ldi *LevelDBIterator) Key() []byte

func (*LevelDBIterator) Next

func (ldi *LevelDBIterator) Next()

func (*LevelDBIterator) Seek

func (ldi *LevelDBIterator) Seek(key []byte)

func (*LevelDBIterator) SeekFirst

func (ldi *LevelDBIterator) SeekFirst()

func (*LevelDBIterator) Valid

func (ldi *LevelDBIterator) Valid() bool

func (*LevelDBIterator) Value

func (ldi *LevelDBIterator) Value() []byte

type LevelDBStore

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

func Open

func Open(path string, createIfMissing bool, errorIfExists bool) (*LevelDBStore, error)

func (*LevelDBStore) Close

func (ldbs *LevelDBStore) Close() error

func (*LevelDBStore) Commit

func (ldbs *LevelDBStore) Commit() error

func (*LevelDBStore) Delete

func (ldbs *LevelDBStore) Delete(key []byte) error

func (*LevelDBStore) Get

func (ldbs *LevelDBStore) Get(key []byte) ([]byte, error)

func (*LevelDBStore) Iterator

func (ldbs *LevelDBStore) Iterator(key []byte) store.KVIterator

func (*LevelDBStore) NewBatch

func (ldbs *LevelDBStore) NewBatch() store.KVBatch

func (*LevelDBStore) Set

func (ldbs *LevelDBStore) Set(key, val []byte) error

Jump to

Keyboard shortcuts

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