Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CurrentContext is the last create lambda context object. CurrentContext context.Context )
Functions ¶
func WrapHandlerWithListeners ¶
func WrapHandlerWithListeners(handler interface{}, listeners ...HandlerListener) interface{}
WrapHandlerWithListeners wraps a lambda handler, and calls listeners before and after every invocation.
Types ¶
type HandlerListener ¶
type HandlerListener interface { HandlerStarted(ctx context.Context, msg json.RawMessage) context.Context HandlerFinished(ctx context.Context) }
HandlerListener is a point where listener logic can be injected into a handler
Click to show internal directories.
Click to hide internal directories.