ctx

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderUUIDAPI    = "X-CTX-CarbonAPI-UUID"
	HeaderUUIDZipper = "X-CTX-CarbonZipper-UUID"
)

Variables

This section is empty.

Functions

func GetLogHeaders added in v0.12.1

func GetLogHeaders(ctx context.Context) map[string]string

func GetMaxDatapoints added in v0.14.0

func GetMaxDatapoints(ctx context.Context) int64

func GetPassHeaders added in v0.12.1

func GetPassHeaders(ctx context.Context) map[string]string

func GetUUID

func GetUUID(ctx context.Context) string

func MarshalCtx

func MarshalCtx(ctx context.Context, response *http.Request, uuidKey string) *http.Request

func MarshalPassHeaders added in v0.12.1

func MarshalPassHeaders(ctx context.Context, response *http.Request) *http.Request

func ParseCtx

func ParseCtx(h http.HandlerFunc, uuidKey string) http.HandlerFunc

func SetLogHeaders added in v0.12.1

func SetLogHeaders(ctx context.Context, h map[string]string) context.Context

func SetMaxDatapoints added in v0.14.0

func SetMaxDatapoints(ctx context.Context, h int64) context.Context

func SetPassHeaders added in v0.12.1

func SetPassHeaders(ctx context.Context, h map[string]string) context.Context

func SetUUID

func SetUUID(ctx context.Context, v string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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