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.
Click to show internal directories.
Click to hide internal directories.