handler

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 7 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL