Documentation
¶
Overview ¶
Package middlewares provides middlewares for common usage, such as working with cookies via gRPC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CookiesWriterName = "cookiesWriterName"
Functions ¶
func CookiesMiddleware ¶
CookiesMiddleware reads provided cookies from request and paste them into context for graphql purposes. After all operations - calls next handler.
func RequestIDMiddleware ¶ added in v1.1.6
RequestIDMiddleware generates request ID and paste it to provided context for later usage.
func TracingMiddleware ¶ added in v1.2.4
func TracingMiddleware(next http.Handler, tp tracing.TraceProvider, spanConfig tracing.SpanConfig) http.Handler
TracingMiddleware creates root span of request and logs its Start and End events.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.