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 ¶
- type GouchstoreBatch
- type GouchstoreIterator
- func (gi *GouchstoreIterator) Close()
- func (gi *GouchstoreIterator) Current() ([]byte, []byte, bool)
- func (gi *GouchstoreIterator) Key() []byte
- func (gi *GouchstoreIterator) Next()
- func (gi *GouchstoreIterator) Seek(key []byte)
- func (gi *GouchstoreIterator) SeekFirst()
- func (gi *GouchstoreIterator) Valid() bool
- func (gi *GouchstoreIterator) Value() []byte
- type GouchstoreStore
- func (gs *GouchstoreStore) Close() error
- func (gs *GouchstoreStore) Commit() error
- func (gs *GouchstoreStore) Delete(key []byte) error
- func (gs *GouchstoreStore) Get(key []byte) ([]byte, error)
- func (gs *GouchstoreStore) Iterator(key []byte) store.KVIterator
- func (gs *GouchstoreStore) NewBatch() store.KVBatch
- func (gs *GouchstoreStore) Set(key, val []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GouchstoreBatch ¶
type GouchstoreBatch struct {
// contains filtered or unexported fields
}
func (*GouchstoreBatch) Close ¶
func (gb *GouchstoreBatch) Close() error
func (*GouchstoreBatch) Delete ¶
func (gb *GouchstoreBatch) Delete(key []byte)
func (*GouchstoreBatch) Execute ¶
func (gb *GouchstoreBatch) Execute() error
func (*GouchstoreBatch) Set ¶
func (gb *GouchstoreBatch) Set(key, val []byte)
type GouchstoreIterator ¶
type GouchstoreIterator struct {
// contains filtered or unexported fields
}
func (*GouchstoreIterator) Close ¶
func (gi *GouchstoreIterator) Close()
func (*GouchstoreIterator) Key ¶
func (gi *GouchstoreIterator) Key() []byte
func (*GouchstoreIterator) Next ¶
func (gi *GouchstoreIterator) Next()
func (*GouchstoreIterator) Seek ¶
func (gi *GouchstoreIterator) Seek(key []byte)
func (*GouchstoreIterator) SeekFirst ¶
func (gi *GouchstoreIterator) SeekFirst()
func (*GouchstoreIterator) Valid ¶
func (gi *GouchstoreIterator) Valid() bool
func (*GouchstoreIterator) Value ¶
func (gi *GouchstoreIterator) Value() []byte
type GouchstoreStore ¶
type GouchstoreStore struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(path string) (*GouchstoreStore, error)
func (*GouchstoreStore) Close ¶
func (gs *GouchstoreStore) Close() error
func (*GouchstoreStore) Commit ¶
func (gs *GouchstoreStore) Commit() error
func (*GouchstoreStore) Delete ¶
func (gs *GouchstoreStore) Delete(key []byte) error
func (*GouchstoreStore) Iterator ¶
func (gs *GouchstoreStore) Iterator(key []byte) store.KVIterator
func (*GouchstoreStore) NewBatch ¶
func (gs *GouchstoreStore) NewBatch() store.KVBatch
func (*GouchstoreStore) Set ¶
func (gs *GouchstoreStore) Set(key, val []byte) error