You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ To do so the demuxxer is configured with `Factory` and `Handler` instances.
23
23
Factories are responsible for determining the type of the event (based off the incoming JSON) and creating an instance of that event.
24
24
25
25
Handlers are responsible for, well, handling that event. Handlers are as used in [aws-lambda-go ](https://github.com/aws/aws-lambda-go), with the restriction
26
-
of having a signature of `func(context.Context, *eventType) (*responseType, error)`.
26
+
of having a signature of `func(context.Context, *eventType) (*responseType, error)`.`eventType` and `responseType` can be any struct with the appropriate json tags to map from the event JSON.
27
27
28
28
A minimal usage showing a lambda that handles REST API request and Websocket lifecycle events:
0 commit comments