Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyHandler ¶
type ProxyHandler func(events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
ProxyHandler declares a convenience type for the AWS gateway proxy handler function signature.
func BuildHandler ¶
func BuildHandler(handler func(http.ResponseWriter, *http.Request)) ProxyHandler
BuildHandler wraps a net/http response handler as a ProxyHandler. This allows us to reuse a regular net/http response handler (used via net/http.HandleFunc) as an AWS Lambda function.
Click to show internal directories.
Click to hide internal directories.