Skip to content

Commit 2929181

Browse files
Updated README
1 parent a476bab commit 2929181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To do so the demuxxer is configured with `Factory` and `Handler` instances.
2323
Factories are responsible for determining the type of the event (based off the incoming JSON) and creating an instance of that event.
2424

2525
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.
2727

2828
A minimal usage showing a lambda that handles REST API request and Websocket lifecycle events:
2929

0 commit comments

Comments
 (0)