Documentation
¶
Overview ¶
Package handler routes API Gateway requests to the image pipeline.
Three paths are served: /health for liveness checks, the configured config.Config.APIEndpoint for transformations, and everything else as a 404. Errors are reported as 400 responses, or as a 302 redirect back to the source image when REDIRECT_ON_ERROR is enabled, so a broken transformation degrades to the original asset instead of a broken image on the page.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(_ context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Handle is the AWS Lambda entry point. It accepts API Gateway proxy events and always returns a response with a nil error: failures are communicated through the HTTP status code so API Gateway does not surface a 502.
Types ¶
This section is empty.