Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRequestInfo ¶
func WithRequestInfo(parent context.Context, info *RequestInfo) context.Context
WithRequestInfo returns a copy of parent in which the request info value is set
Types ¶
type RequestInfo ¶
type RequestInfo struct {
// contains filtered or unexported fields
}
RequestInfo includes information about a request.
func RequestInfoFrom ¶
func RequestInfoFrom(ctx context.Context) (*RequestInfo, bool)
RequestInfoFrom returns the value of the RequestInfo key on the ctx
type RequestInfoResolver ¶
type RequestInfoResolver interface {
NewRequestInfo(req *http.Request) (*RequestInfo, error)
}
RequestInfoResolver represents a request info resolver that can be used to resolver requests.
Click to show internal directories.
Click to hide internal directories.