Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name defines the internal name given to the bleve store
Name = "gotinydb"
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigMap ¶ added in v0.3.1
func NewConfigMap(ctx context.Context, path string, key [32]byte, prefix []byte, db *badger.DB, writeElementsChan chan *transaction.Transaction) map[string]interface{}
NewConfigMap returns the configuration as a map
Types ¶
type Config ¶ added in v0.3.1
type Config struct {
// contains filtered or unexported fields
}
Config defines the different configurations needed to make the store work
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator is self explained
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implement the reader interface
func (*Reader) MultiGet ¶
MultiGet returns multiple values of the given ID in on shot. It returns an error if any
func (*Reader) PrefixIterator ¶
func (r *Reader) PrefixIterator(prefix []byte) store.KVIterator
PrefixIterator builds a new iterator with the provided prefix
func (*Reader) RangeIterator ¶
func (r *Reader) RangeIterator(start, end []byte) store.KVIterator
RangeIterator builds a new iterator which will start at start and automatically stop at end
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the blevestore interface
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implement the blevestore writer interface
func (*Writer) ExecuteBatch ¶
ExecuteBatch runs the batch
func (*Writer) NewBatchEx ¶
NewBatchEx returns an object to keep all operations before run
Click to show internal directories.
Click to hide internal directories.