Skip to content

Conversation

@uh-zz
Copy link

@uh-zz uh-zz commented Mar 21, 2022

Summary

I wanted to support the following signatures from the aws doc, so I added them

  • func (context.Context, TIn) (TOut, error)

Perhaps other signatures are made to respond in the same way

  • func ()
  • func () error
  • func (TIn) error
  • func () (TOut, error)
  • func (context.Context) error
  • func (context.Context, TIn) error
  • func (context.Context) (TOut, error)

https://docs.aws.amazon.com/lambda/latest/dg/golang-handler.html

Also, the logic is based on the official aws sdk
https://github.com/aws/aws-lambda-go/blob/3afc312542924bc260516dd416c66d43f990390c/lambda/handler.go#L83

@seanvm
Copy link

seanvm commented Mar 28, 2023

I believe this would also solve this issue - dherault/serverless-offline#1677 with serverless-offline - @icarus-sullivan are you able to take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants