Documentation ¶
Index ¶
- Constants
- func BackwardTransformIfSystem(key string) string
- func GetContextFromRequest(c *fasthttp.RequestCtx) context.Context
- func PrepareExpirationHeader(ctx context.Context, p *pool.Pool, headers map[string]string, now time.Time) error
- func SetContextToRequest(ctx context.Context, c *fasthttp.RequestCtx)
- func SetHTTPTraceInfo(ctx context.Context, span trace.Span, req *fasthttp.RequestCtx)
- func StartHTTPServerSpan(ctx context.Context, req *fasthttp.RequestCtx, operationName string, ...) (context.Context, trace.Span)
- func TransformIfSystem(key []byte) []byte
- type AppParams
- type EpochDurations
Constants ¶
View Source
const (
UserAttributeHeaderPrefix = "X-Attribute-"
)
Variables ¶
This section is empty.
Functions ¶
func GetContextFromRequest ¶ added in v0.28.0
func GetContextFromRequest(c *fasthttp.RequestCtx) context.Context
GetContextFromRequest returns main context from fasthttp request context.
func PrepareExpirationHeader ¶
func SetContextToRequest ¶ added in v0.28.0
func SetContextToRequest(ctx context.Context, c *fasthttp.RequestCtx)
SetContextToRequest adds new context to fasthttp request.
func SetHTTPTraceInfo ¶ added in v0.28.0
SetHTTPTraceInfo saves trace headers to response.
func StartHTTPServerSpan ¶ added in v0.28.0
func StartHTTPServerSpan(ctx context.Context, req *fasthttp.RequestCtx, operationName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
StartHTTPServerSpan starts root HTTP server span.
func TransformIfSystem ¶
Types ¶
type AppParams ¶
type AppParams struct { Logger *zap.Logger Pool *pool.Pool Owner *user.ID Resolver *resolver.ContainerResolver Cache *cache.BucketCache }
type EpochDurations ¶
func GetEpochDurations ¶
Click to show internal directories.
Click to hide internal directories.