Documentation
¶
Overview ¶
Package handlertrace allows middleware authors using lambda.NewHandler to instrument request and response events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerTrace ¶
type HandlerTrace struct { RequestEvent func(context.Context, interface{}) ResponseEvent func(context.Context, interface{}) }
HandlerTrace allows handlers which wrap the return value of lambda.NewHandler to access to the request and response events.
func FromContext ¶
func FromContext(ctx context.Context) HandlerTrace
FromContext returns the HandlerTrace associated with the provided context.
Source Files
¶
- trace.go
Click to show internal directories.
Click to hide internal directories.