lambda

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestBody

func RequestBody(isBase64Encoded bool, body string) (string, error)

RequestBody returns the body and properly base64 decodes it if necessary.

func RequestBodyFromApiGatewayWebsocket

func RequestBodyFromApiGatewayWebsocket(request *events.APIGatewayWebsocketProxyRequest) (string, error)

RequestBodyFromApiGatewayWebsocket returns the body and properly base64 decodes it if necessary.

func RequestBodyFromFromAPIGatewayProxy

func RequestBodyFromFromAPIGatewayProxy(request *events.APIGatewayProxyRequest) (string, error)

RequestBodyFromFromAPIGatewayProxy returns the body and properly base64 decodes it if necessary.

func RequestBodyFromFromApiGatewayV2HTTP

func RequestBodyFromFromApiGatewayV2HTTP(request *events.APIGatewayV2HTTPRequest) (string, error)

RequestBodyFromApiGatewayV2HTTP returns the body and properly base64 decodes it if necessary.

Types

type WebsocketAPIResponse added in v1.0.2

type WebsocketAPIResponse struct {
	StatusCode int `json:"statusCode"`
}

WebsocketAPILambdaResponse is a type suitable for use as a return type in a Lambda function for API Gateway Websocket API.

The API Gateway Websocket API expects a 200 series status code on success and non-200 series status (such as 40x or 50x) for errors.

Jump to

Keyboard shortcuts

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