Documentation ¶
Index ¶
- func RequestBody(isBase64Encoded bool, body string) (string, error)
- func RequestBodyFromApiGatewayWebsocket(request *events.APIGatewayWebsocketProxyRequest) (string, error)
- func RequestBodyFromFromAPIGatewayProxy(request *events.APIGatewayProxyRequest) (string, error)
- func RequestBodyFromFromApiGatewayV2HTTP(request *events.APIGatewayV2HTTPRequest) (string, error)
- type WebsocketAPIResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestBody ¶
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.
Click to show internal directories.
Click to hide internal directories.