Skip to content

feat: support for valid parameters in aws lambda rules#2

Open
uh-zz wants to merge 1 commit into
icarus-sullivan:masterfrom
uh-zz:support-some-parameters
Open

feat: support for valid parameters in aws lambda rules#2
uh-zz wants to merge 1 commit into
icarus-sullivan:masterfrom
uh-zz:support-some-parameters

Conversation

@uh-zz

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

Copy link
Copy Markdown

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

seanvm commented Mar 28, 2023

Copy link
Copy Markdown

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