query_backend

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConcurrencyInterceptor added in v1.11.0

func CreateConcurrencyInterceptor(logger log.Logger) (grpc.UnaryServerInterceptor, error)

func QueryReportType

func QueryReportType(q queryv1.QueryType) queryv1.ReportType

Types

type BlockReader

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

func NewBlockReader

func NewBlockReader(logger log.Logger, storage objstore.Bucket) *BlockReader

func (*BlockReader) Invoke

type Config

type Config struct {
	Address          string            `yaml:"address"`
	GRPCClientConfig grpcclient.Config `` /* 144-byte string literal not displayed */
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

func (*Config) Validate

func (cfg *Config) Validate() error

type ProfileEntry

type ProfileEntry struct {
	RowNum      int64
	Timestamp   model.Time
	Fingerprint model.Fingerprint
	Labels      phlaremodel.Labels
	Partition   uint64
}

func (ProfileEntry) RowNumber

func (e ProfileEntry) RowNumber() int64

type QueryBackend

type QueryBackend struct {
	queryv1.QueryBackendServiceServer
	// contains filtered or unexported fields
}

func New

func New(
	config Config,
	logger log.Logger,
	reg prometheus.Registerer,
	backendClient QueryHandler,
	blockReader QueryHandler,
) (*QueryBackend, error)

func (*QueryBackend) Invoke

func (*QueryBackend) Service

func (q *QueryBackend) Service() services.Service

type QueryHandler

type QueryHandler interface {
	Invoke(context.Context, *queryv1.InvokeRequest) (*queryv1.InvokeResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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