MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / callBytesHandlerFunc

Function callBytesHandlerFunc

lambda/invoke_loop.go:119–130  ·  view source on GitHub ↗
(ctx context.Context, payload []byte, handler handlerFunc)

Source from the content-addressed store, hash-verified

117}
118
119func callBytesHandlerFunc(ctx context.Context, payload []byte, handler handlerFunc) (response io.Reader, invokeErr *messages.InvokeResponse_Error) {
120 defer func() {
121 if err := recover(); err != nil {
122 invokeErr = lambdaPanicResponse(err)
123 }
124 }()
125 response, err := handler(ctx, payload)
126 if err != nil {
127 return nil, lambdaErrorResponse(err)
128 }
129 return response, nil
130}
131
132func parseDeadline(invoke *invoke) (time.Time, error) {
133 deadlineEpochMS, err := strconv.ParseInt(invoke.headers.Get(headerDeadlineMS), 10, 64)

Callers 1

handleInvokeFunction · 0.85

Calls 3

lambdaPanicResponseFunction · 0.85
lambdaErrorResponseFunction · 0.85
handlerFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…