Documentation ¶
Overview ¶
Package metrics provides a bleve.store.KVStore implementation that wraps another, real KVStore implementation, and uses go-metrics to track runtime performance metrics.
Index ¶
- Constants
- func StoreConstructor(config map[string]interface{}) (store.KVStore, error)
- func WriteTimerCSV(w io.Writer, timer metrics.Timer)
- func WriteTimerCSVHeader(w io.Writer, prefix string)
- func WriteTimerJSON(w io.Writer, timer metrics.Timer)
- type Batch
- type Iterator
- type Reader
- type Store
- func (s *Store) Actual() store.KVStore
- func (s *Store) AddError(op string, err error, key []byte)
- func (s *Store) Close() error
- func (s *Store) Open() error
- func (s *Store) Reader() (store.KVReader, error)
- func (s *Store) SetMergeOperator(mo store.MergeOperator)
- func (s *Store) WriteCSV(w io.Writer)
- func (s *Store) WriteCSVHeader(w io.Writer)
- func (s *Store) WriteJSON(w io.Writer)
- func (s *Store) Writer() (store.KVWriter, error)
- type StoreError
- type Writer
- func (w *Writer) BytesSafeAfterClose() bool
- func (w *Writer) Close() error
- func (w *Writer) Delete(key []byte) (err error)
- func (w *Writer) Get(key []byte) (v []byte, err error)
- func (w *Writer) Iterator(key []byte) (i store.KVIterator)
- func (w *Writer) NewBatch() store.KVBatch
- func (w *Writer) Set(key, val []byte) (err error)
Constants ¶
View Source
const MaxErrors = 100
View Source
const Name = "metrics"
Variables ¶
This section is empty.
Functions ¶
func WriteTimerCSV ¶
func WriteTimerCSVHeader ¶
func WriteTimerJSON ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) BytesSafeAfterClose ¶
type Store ¶
type Store struct { TimerReaderGet metrics.Timer TimerReaderIterator metrics.Timer TimerWriterGet metrics.Timer TimerWriterIterator metrics.Timer TimerWriterSet metrics.Timer TimerWriterDelete metrics.Timer TimerIteratorSeekFirst metrics.Timer TimerIteratorSeek metrics.Timer TimerIteratorNext metrics.Timer TimerBatchMerge metrics.Timer TimerBatchExecute metrics.Timer // contains filtered or unexported fields }
func NewBleveMetricsStore ¶
func (*Store) SetMergeOperator ¶
func (s *Store) SetMergeOperator(mo store.MergeOperator)
func (*Store) WriteCSVHeader ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) BytesSafeAfterClose ¶
Click to show internal directories.
Click to hide internal directories.