response

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(status int, body string) events.APIGatewayProxyResponse

New creates a new plain text response for API Gateway

func NewError

func NewError(status int, msg string) events.APIGatewayProxyResponse

NewError creates a new error response for API Gateway

func NewJson

func NewJson(status int, body any) events.APIGatewayProxyResponse

NewJson creates a new JSON response for API Gateway. Body will be converted into JSON using json.Marshal(). If there is an error marshalling the body, the response will be left blank.

Types

This section is empty.

Jump to

Keyboard shortcuts

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