Documentation ¶
Index ¶
Constants ¶
View Source
const CtxKey = contextKey("original-request")
CtxKey is a key against which api request will get stored in the context.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext retrieves the api request body stored against the request.ctxKey from the context.
func NewContext ¶
NewContext returns a new context with the given request body.
Types ¶
type RequestInfo ¶
func FromRequestIDContext ¶
func FromRequestIDContext(ctx context.Context) (*RequestInfo, error)
FromContext retrieves the rs ap request Id stored against the querytranslate.ctxKeyRequestId from the context.
Click to show internal directories.
Click to hide internal directories.