handler

package
v0.0.0-...-9042912 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorResponse

func ErrorResponse(err error) (*events.APIGatewayV2HTTPResponse, error)

ErrorResponse builds the API Gateway Lambda response as a structured JSON for a given error. The HTTP status code is inferred from the error type.

func JsonResponse

func JsonResponse(statusCode int, data any) (*events.APIGatewayV2HTTPResponse, error)

JsonResponse builds the API Gateway Lambda response in JSON format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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