lazyquery

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

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) LabelNames

func (l LazyQuerier) LabelNames(ctx context.Context, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)

LabelNames implements Storage.Querier

func (LazyQuerier) LabelValues

func (l LazyQuerier) LabelValues(ctx context.Context, name string, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)

LabelValues implements Storage.Querier

func (LazyQuerier) Select

func (l LazyQuerier) Select(ctx context.Context, selectSorted bool, params *storage.SelectHints, matchers ...*labels.Matcher) storage.SeriesSet

Select implements Storage.Querier

Jump to

Keyboard shortcuts

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