httpreq

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LokiActorPathHeader is the name of the header e.g. used to enqueue requests in hierarchical queues.
	LokiActorPathHeader = "X-Loki-Actor-Path"

	// LokiActorPathDelimiter is the delimiter used to serialise the hierarchy of the actor.
	LokiActorPathDelimiter = "|"
)
View Source
var (
	QueryTagsHTTPHeader ctxKey = "X-Query-Tags"

	QueryQueueTimeHTTPHeader ctxKey = "X-Query-Queue-Time"
)

Functions

func ExtractActorPath

func ExtractActorPath(ctx context.Context) []string

func ExtractHeader

func ExtractHeader(ctx context.Context, name string) string

func ExtractQueryMetricsMiddleware

func ExtractQueryMetricsMiddleware() middleware.Interface

func ExtractQueryTagsMiddleware

func ExtractQueryTagsMiddleware() middleware.Interface

func PropagateHeadersMiddleware

func PropagateHeadersMiddleware(headers ...string) middleware.Interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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