Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStopScan = errors.New("stop scanning") DefaultScanOpts = ScanOpts{ PrefetchSize: 100, PrefetchValues: true, } )
View Source
var (
ErrKeyNotFound = badger.ErrKeyNotFound
)
Functions ¶
This section is empty.
Types ¶
type HandoverCallback ¶
type HandoverCallback func()
type IndexOptions ¶
type IndexOptions func(store IndexStore)
func IndexWithLogger ¶
func IndexWithLogger(l *logger.Logger) IndexOptions
IndexWithLogger sets a external logger into underlying IndexStore
type IndexStore ¶
func OpenIndexStore ¶
func OpenIndexStore(shardID int, path string, options ...IndexOptions) (IndexStore, error)
OpenIndexStore creates a new IndexStore
type Store ¶
type Store interface { observability.Observable io.Closer Writer Reader }
Store is a common kv storage with auto-generated key
type StoreOptions ¶
type StoreOptions func(Store)
func StoreWithLogger ¶
func StoreWithLogger(l *logger.Logger) StoreOptions
StoreWithLogger sets a external logger into underlying Store
func StoreWithNamedLogger ¶
func StoreWithNamedLogger(name string, l *logger.Logger) StoreOptions
StoreWithNamedLogger sets a external logger with a name into underlying Store
type TimeSeriesOptions ¶
type TimeSeriesOptions func(TimeSeriesStore)
func TSSWithEncoding ¶
func TSSWithEncoding(encoderPool encoding.SeriesEncoderPool, decoderPool encoding.SeriesDecoderPool) TimeSeriesOptions
func TSSWithFlushCallback ¶
func TSSWithFlushCallback(callback func()) TimeSeriesOptions
func TSSWithLogger ¶
func TSSWithLogger(l *logger.Logger) TimeSeriesOptions
TSSWithLogger sets a external logger into underlying TimeSeriesStore
type TimeSeriesReader ¶
type TimeSeriesStore ¶
type TimeSeriesStore interface { observability.Observable io.Closer TimeSeriesWriter TimeSeriesReader }
TimeSeriesStore is time series storage
func OpenTimeSeriesStore ¶
func OpenTimeSeriesStore(shardID int, path string, options ...TimeSeriesOptions) (TimeSeriesStore, error)
OpenTimeSeriesStore creates a new TimeSeriesStore
type TimeSeriesWriter ¶
Click to show internal directories.
Click to hide internal directories.