Documentation ¶
Index ¶
- Constants
- Variables
- func InitMossStore(config map[string]interface{}, options moss.CollectionOptions) (moss.Snapshot, moss.LowerLevelUpdate, store.KVStore, statsFunc, error)
- func New(mo store.MergeOperator, config map[string]interface{}) (store.KVStore, error)
- type Batch
- type Iterator
- type Reader
- type Store
- type Writer
Constants ¶
View Source
const Name = "moss"
Variables ¶
View Source
var RegistryCollectionOptions = map[string]moss.CollectionOptions{}
RegistryCollectionOptions should be treated as read-only after process init()'ialization.
Functions ¶
func InitMossStore ¶ added in v0.3.0
func InitMossStore(config map[string]interface{}, options moss.CollectionOptions) ( moss.Snapshot, moss.LowerLevelUpdate, store.KVStore, statsFunc, error)
func New ¶
New initializes a moss storage with values from the optional config["mossCollectionOptions"] (a JSON moss.CollectionOptions). Next, values from the RegistryCollectionOptions, named by the optional config["mossCollectionOptionsName"], take precedence. Finally, base case defaults are taken from moss.DefaultCollectionOptions.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) PrefixIterator ¶
func (r *Reader) PrefixIterator(k []byte) store.KVIterator
func (*Reader) RangeIterator ¶
func (r *Reader) RangeIterator(start, end []byte) store.KVIterator
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) NewBatchEx ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.