I'd like to get my two lambdas to communicate with each other. Lambda A uses InvokeInput, passing Payload as used in the example here:
However, the example doesn't show the receiving end i.e Lambda B. I'm trying to access Payload
, so I've tried a handler with the method signatures:
func Handler(ctx context.Context, lambdaInput messages.InvokeRequest) (api.Response, error)
as well as
func Handler(ctx context.Context, lambdaInput lambda.InvokeInput) (api.Response, error)
When calling lambdaInput.Payload
on the former it returns []
despite what's being sent as a payload.
I am unable to find the documentation on this, does anyone know the proper signature that I should be using?