read_path

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query[Req, Resp any](
	ctx context.Context,
	router *Router,
	req *connect.Request[Req],
	aggregate func(a, b *Resp) (*Resp, error),
) (*connect.Response[Resp], error)

Types

type Config

type Config struct {
	EnableQueryBackend     bool      `yaml:"enable_query_backend" json:"enable_query_backend" doc:"hidden"`
	EnableQueryBackendFrom time.Time `yaml:"enable_query_backend_from" json:"enable_query_backend_from" doc:"hidden"`
}

func (*Config) RegisterFlags

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

type Overrides

type Overrides interface {
	ReadPathOverrides(tenantID string) Config
}

type Router

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

Router is a proxy that routes queries to the querier frontend or the backend querier service directly, bypassing the scheduler and querier services.

func NewRouter

func NewRouter(
	logger log.Logger,
	overrides Overrides,
	frontend querierv1connect.QuerierServiceClient,
	backend querierv1connect.QuerierServiceClient,
) *Router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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