Add new decorator to pass a CloudEvent object to a handler function
Description
Add a new decorator to the framework that mirrors the behaviour of the existing cloud_event handler. The handler should return the data portion of the CloudEvent to the calling handler.
Further details
This decorator should live under a cloud_events module, and should be responsible for wrapping a handler function, to return the contents of the data in the CloudEvent parsed to the function.
Task list
Acceptance criteria
-
Handler exists in separate module to pass CloudEvent messages to a handler function, building on the functions_framework.cloud_eventfunction
Links/references
Edited by Mike Knee