Documentation
¶
Index ¶
- func BadRequestResponse() events.APIGatewayProxyResponse
- func HTTPBadRequestResponse() events.APIGatewayV2HTTPResponse
- func HTTPHandler(_ context.Context, req *events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
- func HTTPInternalServerErrorResponse() events.APIGatewayV2HTTPResponse
- func HTTPOKResponse() events.APIGatewayV2HTTPResponse
- func InternalServerErrorResponse() events.APIGatewayProxyResponse
- func OkResponse() events.APIGatewayProxyResponse
- func WebsocketHandler(_ context.Context, req *events.APIGatewayWebsocketProxyRequest) (events.APIGatewayProxyResponse, error)
- type WebsocketLambda
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestResponse ¶
func BadRequestResponse() events.APIGatewayProxyResponse
func HTTPBadRequestResponse ¶
func HTTPBadRequestResponse() events.APIGatewayV2HTTPResponse
func HTTPHandler ¶
func HTTPHandler(_ context.Context, req *events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
func HTTPInternalServerErrorResponse ¶
func HTTPInternalServerErrorResponse() events.APIGatewayV2HTTPResponse
func HTTPOKResponse ¶
func HTTPOKResponse() events.APIGatewayV2HTTPResponse
func InternalServerErrorResponse ¶
func InternalServerErrorResponse() events.APIGatewayProxyResponse
func OkResponse ¶
func OkResponse() events.APIGatewayProxyResponse
func WebsocketHandler ¶
func WebsocketHandler(_ context.Context, req *events.APIGatewayWebsocketProxyRequest) (events.APIGatewayProxyResponse, error)
Types ¶
type WebsocketLambda ¶
type WebsocketLambda struct {
ConnectionID string `json:"ConnectionID"`
ChannelID string `json:"ChannelID"`
RequestTimeEpoch int64 `json:"RequestTimeEpoch"`
ResourceID string `json:"ResourceID"`
EventType string `json:"EventType"`
ExtendedRequestID string `json:"ExtendedRequestID"`
Endpoint string `json:"Endpoint"`
}
Click to show internal directories.
Click to hide internal directories.
