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
- func StoreConstructor(config map[string]interface{}) (store.KVStore, error)
- type LevelDBBatch
- type LevelDBIterator
- func (ldi *LevelDBIterator) Close()
- func (ldi *LevelDBIterator) Current() ([]byte, []byte, bool)
- func (ldi *LevelDBIterator) Key() []byte
- func (ldi *LevelDBIterator) Next()
- func (ldi *LevelDBIterator) Seek(key []byte)
- func (ldi *LevelDBIterator) SeekFirst()
- func (ldi *LevelDBIterator) Valid() bool
- func (ldi *LevelDBIterator) Value() []byte
- type LevelDBStore
- func (ldbs *LevelDBStore) Close() error
- func (ldbs *LevelDBStore) Commit() error
- func (ldbs *LevelDBStore) Delete(key []byte) error
- func (ldbs *LevelDBStore) Get(key []byte) ([]byte, error)
- func (ldbs *LevelDBStore) Iterator(key []byte) store.KVIterator
- func (ldbs *LevelDBStore) NewBatch() store.KVBatch
- func (ldbs *LevelDBStore) Set(key, val []byte) error
Constants ¶
const Name = "leveldb"
Variables ¶
This section is empty.
Functions ¶
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) 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 (*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) 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