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
- func (s *Store) Close() error
- func (s *Store) Collection() moss.Collection
- func (s *Store) Logf(fmt string, args ...interface{})
- func (s *Store) LowerLevelStore() store.KVStore
- func (s *Store) Reader() (store.KVReader, error)
- func (s *Store) Stats() json.Marshaler
- func (s *Store) StatsMap() map[string]interface{}
- func (s *Store) Writer() (store.KVWriter, error)
- 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 Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Collection ¶ added in v0.8.0
func (s *Store) Collection() moss.Collection
func (*Store) LowerLevelStore ¶ added in v0.6.0
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.