INNER CODE UNIT · Go
APIGatewayV1RequestFromContext
akrylysov/algnhsa · apigw_v1.go:61
func APIGatewayV1RequestFromContext(ctx context.Context) (events.APIGatewayProxyRequest, bool) {
val := ctx.Value(RequestTypeAPIGatewayV1)
if val == nil {
return events.APIGatewayProxyRequest{}, false
}
event, ok := val.(events.APIGatewayProxyRequest)
return event, ok
}