query

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrBadQuery

type ErrBadQuery struct {
	Message string
}

ErrBadQuery returned whenever request is malformed and must contain a message suitable to return in API response.

func NewErrBadQuery

func NewErrBadQuery(msg string) *ErrBadQuery

func (ErrBadQuery) Error

func (e ErrBadQuery) Error() string

type Service

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

func ProvideService

func ProvideService(
	cfg *setting.Cfg,
	dataSourceCache datasources.CacheService,
	expressionService *expr.Service,
	pluginRequestValidator models.PluginRequestValidator,
	SecretsService secrets.Service,
	pluginClient plugins.Client,
	oAuthTokenService oauthtoken.OAuthTokenService,
) *Service

func (*Service) QueryData

func (s *Service) QueryData(ctx context.Context, user *models.SignedInUser, skipCache bool, reqDTO dtos.MetricRequest, handleExpressions bool) (*backend.QueryDataResponse, error)

QueryData can process queries and return query responses.

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run Service.

Jump to

Keyboard shortcuts

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