Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternalServerErrorResponse ¶
func InternalServerErrorResponse() events.APIGatewayV2HTTPResponse
InternalServerErrorResponse returns a standard 500 error response
func NewResponseWriter ¶
func NewResponseWriter() http.ResponseWriter
NewResponseWriter returns a new ResponseWriter for the request
func RequestForEvent ¶
func RequestForEvent(e events.APIGatewayV2HTTPRequest) (*http.Request, error)
RequestForEvent converts the APIGatewayV2HTTPRequest into a standard golang http.Request
Types ¶
type HandlerFunc ¶
type HandlerFunc func(context.Context, events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
HandlerFunc is the function interface for proxying API Gateway events to standard http.Handler
func Handler ¶
func Handler(handler http.Handler) HandlerFunc
Handler converts the APIGatewayV2HTTPRequest into a standard golang http.Request and provides a simple writer.
Click to show internal directories.
Click to hide internal directories.