lazyquery

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrSeriesSet

func NewErrSeriesSet(err error) storage.SeriesSet

func NewLazyQuerier

func NewLazyQuerier(next storage.Querier) storage.Querier

NewLazyQuerier wraps a storage.Querier, does the Select in the background. Return value cannot be used from more than one goroutine simultaneously.

func NewLazyQueryable

func NewLazyQueryable(q storage.Queryable) storage.Queryable

NewLazyQueryable returns a lazily wrapped queryable

Types

type LazyQuerier

type LazyQuerier struct {
	// contains filtered or unexported fields
}

LazyQuerier is a lazy-loaded adapter for a storage.Querier

func (LazyQuerier) Close

func (l LazyQuerier) Close() error

Close implements Storage.Querier

func (LazyQuerier) Get

func (l LazyQuerier) Get(ctx context.Context, userID string, from, through model.Time, matchers ...*labels.Matcher) ([]chunk.Chunk, error)

Get implements ChunkStore for the chunk tar HTTP handler.

func (LazyQuerier) LabelNames

func (l LazyQuerier) LabelNames() ([]string, storage.Warnings, error)

LabelNames implements Storage.Querier

func (LazyQuerier) LabelValues

func (l LazyQuerier) LabelValues(name string) ([]string, storage.Warnings, error)

LabelValues implements Storage.Querier

func (LazyQuerier) Select

func (l LazyQuerier) Select(params *storage.SelectParams, matchers ...*labels.Matcher) (storage.SeriesSet, storage.Warnings, error)

Select implements Storage.Querier

func (LazyQuerier) SelectSorted

func (l LazyQuerier) SelectSorted(params *storage.SelectParams, matchers ...*labels.Matcher) (storage.SeriesSet, storage.Warnings, error)

SelectSorted implements Storage.Querier

type LazyQueryable

type LazyQueryable struct {
	// contains filtered or unexported fields
}

LazyQueryable wraps a storage.Queryable

func (LazyQueryable) Querier

func (lq LazyQueryable) Querier(ctx context.Context, mint, maxt int64) (storage.Querier, error)

Querier implements storage.Queryable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL